Skip to content
Snippets Groups Projects
Commit 532dd64b authored by Martin Vogel's avatar Martin Vogel
Browse files

refactor: catch NPE to make xml systemID parsing more stable (planning#1151)

parent 69f2cb44
No related branches found
No related tags found
1 merge request!510Feature/1151 release 2.5.0
...@@ -17,7 +17,7 @@ public class SchemaIdentifier { ...@@ -17,7 +17,7 @@ public class SchemaIdentifier {
private String getSchemaName(String name) { private String getSchemaName(String name) {
try { try {
return Path.of(name).getFileName().toString(); return Path.of(name).getFileName().toString();
} catch (InvalidPathException e) { } catch (InvalidPathException | NullPointerException e) {
return null; return null;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment