Skip to content
Snippets Groups Projects
Commit 7f5f0b60 authored by User expired's avatar User expired
Browse files

fixed NPE

parent 165d9ed8
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,8 @@ public class ConfigDataset {
// find resources on disk and add to available ones
URI r = null;
try {
r = cLoader.getResource("/").toURI();
final URL resource = cLoader.getResource("/");
r = resource == null ? null : resource.toURI();
} catch (final URISyntaxException e1) {
LOGGER.warn("Datasets directory URI could not be created. There might be no configured datasets available!");
}
......
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