Skip to content

Commit 9c9d173

Browse files
authored
Fix #44. com.onelogin.saml.Utils.validateXML fails with NullPointerException on Windows
Java is able to process path with "/"
1 parent 06984a3 commit 9c9d173

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/onelogin/saml/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static Document validateXML(String xmlString, String schemaName, Boolean.
236236
throws Exception {
237237

238238
try {
239-
String schemaFullPath = "schemas" + File.separatorChar + schemaName;
239+
String schemaFullPath = "schemas" + "/" + schemaName;
240240
log.debug("schemaFullPath: " +schemaFullPath);
241241
ClassLoader classLoader = Utils.class.getClassLoader();
242242
URL schemaFile = classLoader.getResource(schemaFullPath);

0 commit comments

Comments
 (0)