Skip to content

Commit

Permalink
Fix NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
sevdokimov-gg committed Oct 13, 2014
1 parent 816b248 commit 651e088
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/gridgain/inspection/GridBracketInspection.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ private void checkStatement(@Nullable final PsiStatement branch) {
return;

statement = (PsiStatement)e;

continue;
}

return;
}

if (statement.textContains('\n'))
if (statement == null || statement.textContains('\n'))
return;

final PsiStatement finalStatement = statement;
Expand Down

0 comments on commit 651e088

Please sign in to comment.