NullPointerException in InspectionGadgets.

I've switched on the Constant Naming Convention check to run in the
background as I type. I have a couple of files open, both Java and non-Java
(JSPs, properties files). I'm repeatedly getting the exception below (each
time IDEA tries to re-run it, I'm guessing). BTW Dave, is posting to the
newsgroup the best way to send you bug reports for this plugin?

Vil.

ERROR - intellij.plugins.PluginManager -
ERROR - intellij.plugins.PluginManager - IntelliJ IDEA (Aurora)
Build #873
ERROR - intellij.plugins.PluginManager - JDK: 1.4.2
ERROR - intellij.plugins.PluginManager - VM: Java HotSpot(TM)
Client VM
ERROR - intellij.plugins.PluginManager - Vendor: Sun Microsystems
Inc.
ERROR - intellij.plugins.PluginManager - OS: Windows 2000
ERROR - intellij.plugins.PluginManager - Last Action: EditorPageDown
ERROR - intellij.plugins.PluginManager -
java.lang.NullPointerException
at
com.siyeh.ig.naming.ConstantNamingConventionInspection.checkField(ConstantNamingConventionInspection.java:68)
at com.intellij.codeInsight.h.a.bw.a(bw.java:29)
at com.intellij.codeInsight.h.a.cn.run(cn.java:10)
at com.intellij.openapi.application.b.d.runReadAction(d.java:152)
at com.intellij.codeInsight.h.a.cy.a(cy.java:28)
at com.intellij.codeInsight.h.a.cy.a(cy.java:29)
at com.intellij.codeInsight.h.a.cm.run(cm.java)
at com.intellij.progress.c.a(c.java:35)
at com.intellij.codeInsight.h.a.cy.run(cy.java:43)
--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

1 comment
Comment actions Permalink

Hurm. Looks like it has to do with JSPs, and it's at a point where PsiField.getContainingClass() returns null (which I had assumed impossible, but maybe it's just impossible in .java files).

I've got a fix, and will ship it out with the next batch.

Unless anyone complains, this is a fine place to send me bug reports. I read it all the time.

Thanks.

--Dave Griffith

0

Please sign in to leave a comment.