Skip to content

Commit d63749f

Browse files
committed
fix possible npe in symbole search for non project context Haehnchen#268
1 parent 0e0761d commit d63749f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fr/adrienbrault/idea/symfony2plugin/Symfony2ProjectComponent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ private void checkProject() {
189189

190190
}
191191

192-
public static boolean isEnabled(Project project) {
193-
return Settings.getInstance(project).pluginEnabled;
192+
public static boolean isEnabled(@Nullable Project project) {
193+
return project != null && Settings.getInstance(project).pluginEnabled;
194194
}
195195

196196
/**

0 commit comments

Comments
 (0)