From 651e0883d01adb0dbc5c7054d7077659895707b6 Mon Sep 17 00:00:00 2001 From: sevdokimov Date: Mon, 13 Oct 2014 12:31:46 +0400 Subject: [PATCH] Fix NPE. --- src/org/gridgain/inspection/GridBracketInspection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/gridgain/inspection/GridBracketInspection.java b/src/org/gridgain/inspection/GridBracketInspection.java index cd96ee8..b893a13 100644 --- a/src/org/gridgain/inspection/GridBracketInspection.java +++ b/src/org/gridgain/inspection/GridBracketInspection.java @@ -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;