Skip to content

Commit

Permalink
Prevent NPE #132
Browse files Browse the repository at this point in the history
  • Loading branch information
junichi11 committed Nov 19, 2015
1 parent ef46f26 commit 8d12d95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/org/cakephp/netbeans/ConfigurationFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ private synchronized List<FileObject> getConfigDirectories() {
return Collections.emptyList();
}
FileObject config = cakeModule.getConfigDirectory(CakePhpModule.DIR_TYPE.APP);
if (config == null) {
return Collections.emptyList();
}
if (!isInitialized) {
isInitialized = true;
addListener(FileUtil.toFile(config));
Expand Down

0 comments on commit 8d12d95

Please sign in to comment.