Skip to content

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
dpolivaev committed Feb 22, 2019
1 parent cb1c320 commit 5df01dc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -497,7 +497,7 @@ public void updateMenus(String menuStructureResource, Set<String> plugins) {

private boolean isUserDefined(final URL location){
try {
if(! location.getProtocol().equalsIgnoreCase("file"))
if(location == null || ! location.getProtocol().equalsIgnoreCase("file"))
return false;
String freeplaneUserDirectory = ResourceController.getResourceController().getFreeplaneUserDirectory();
if(freeplaneUserDirectory == null)
Expand Down

0 comments on commit 5df01dc

Please sign in to comment.