Inspection Gadgets crash

I have something like
:
if (GpixDctmUtil.isProgramExternal((GmiDocument)obj))
{
_products =
}

I was typing "_products = " and then it crashed.

--Grant


Error message: Exception happened in local inspection tool: Unnecessary 'if'
statement
java.lang.NullPointerException
at
com.siyeh.ig.verbose.TrivialIfInspection.isAssignment(TrivialIfInspection.ja
va:196)
at
com.siyeh.ig.verbose.TrivialIfInspection.access$400(TrivialIfInspection.java
:10)
at
com.siyeh.ig.verbose.TrivialIfInspection$TrivialIfVisitor.visitIfStatement(T
rivialIfInspection.java:144)
at com.intellij.psi.impl.source.b.a.t.accept(t.java:18)
at com.intellij.psi.impl.source.b.s.acceptChildren(s.java:19)
at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElement
Visitor.java)
at
com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:2
6)
at com.intellij.psi.impl.source.b.a.br.accept(br.java:33)
at com.intellij.psi.impl.source.b.s.acceptChildren(s.java:19)
at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElement
Visitor.java)
at
com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:1
37)
at
com.intellij.psi.JavaElementVisitor.visitTryStatement(JavaElementVisitor.jav
a:120)
at com.intellij.psi.impl.source.b.a.bo.accept(bo.java:32)
at com.intellij.psi.impl.source.b.s.acceptChildren(s.java:19)
at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElement
Visitor.java)
at
com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:2
6)
at com.intellij.psi.impl.source.b.a.br.accept(br.java:33)
at com.intellij.psi.impl.source.q.acceptChildren(q.java:70)
at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElement
Visitor.java)
at
com.intellij.psi.JavaElementVisitor.visitMethod(JavaElementVisitor.java:119)
at com.intellij.psi.impl.source.be.accept(be.java:108)
at
com.siyeh.ig.ExpressionInspection.checkMethod(ExpressionInspection.java:50)
at com.intellij.codeInsight.m.a.i.a(i.java:25)
at com.intellij.codeInsight.m.a.bk$1.run(bk$1.java:7)
at com.intellij.openapi.application.a.b.runReadAction(b.java:342)
at com.intellij.codeInsight.m.a.bk.a(bk.java:4)
at com.intellij.codeInsight.m.a.bk.access$100(bk.java:18)
at com.intellij.codeInsight.m.a.bk$0.run(bk$0.java:0)
at
com.intellij.progress.ProgressManager.runProcess(ProgressManager.java:14)
at com.intellij.codeInsight.m.a.bk.run(bk.java:6)



Please sign in to leave a comment.