In addition....
I worked out what caused it. Follow this chain of events and it is reproduceable...
1) Enter these two lines of code in a class:
String temp = "HELLO";
int endIndex = temp.indexOf(+);
2) I know the '+' is incorrect but it was mistyped and I didn't notice before typing an additional underscore character ('_').
int endIndex = temp.indexOf(+_);
3) This is when the exception occurs. It works for any character after the '+'. The only way to stop the endless dialog box is to click ok and quickly press backspace to delete the underscore. Very strange indeed? Also happens with other character combinations.
Tried this on builds 614/615/616 they all have the problem.
Hope this helps.
- scott
-----Original Message-----
From: Scott Curtis
Sent: Friday, April 12, 2002 12:13 PM
To: '[EMAIL PROTECTED]'
Subject: #616 - NPE when editing a class...
Got this while editing a class. Not sure exactly what caused it. It caused the endless internal error dialog and I had to kill the program.
[ 471327] ERROR - intellij.plugins.PluginManager -[ 471358] ERROR - intellij.plugins.PluginManager - IntelliJ IDEA (Ariadna) Build #616
[ 471368] ERROR - intellij.plugins.PluginManager - JDK: 1.3.1_02
[ 471368] ERROR - intellij.plugins.PluginManager - VM: Java HotSpot(TM) ClientVM
[ 471368] ERROR - intellij.plugins.PluginManager - Vendor: Sun Microsystems Inc.
[ 471368] ERROR - intellij.plugins.PluginManager - OS: Windows NT
[ 471368] ERROR - intellij.plugins.PluginManager -java.lang.NullPointerException
at com.intellij.psi.impl.source.bx.d(bx.java:1)
at com.intellij.psi.impl.source.d.d.a(d.java:185)
at com.intellij.psi.impl.source.d.d.a(d.java:158)
at com.intellij.psi.impl.source.d.d.a(d.java:112)
at com.intellij.psi.impl.source.d.d.a(d.java:91)
at com.intellij.psi.impl.source.d.d.b(d.java:140)
at com.intellij.psi.impl.source.d.d.a(d.java:8)
at com.intellij.psi.impl.source.d.g.a(g.java:9)
at com.intellij.psi.impl.source.d.b.a(b.java:150)
at com.intellij.codeInsight.daemon.impl.cg.a(cg.java:435)
at com.intellij.codeInsight.daemon.impl.cg.a(cg.java:307)
at com.intellij.psi.impl.source.cd.a(cd.java:11)
at com.intellij.codeInsight.daemon.impl.h.a(h.java:93)
at com.intellij.codeInsight.daemon.impl.h.run(h.java:105)
at com.intellij.openapi.a.a.b.a(b.java:222)
at com.intellij.codeInsight.daemon.impl.cl.b(cl.java:53)
at com.intellij.codeInsight.daemon.impl.cl.a(cl.java:58)
at com.intellij.codeInsight.daemon.impl.cl.a(cl.java:41)
at com.intellij.codeInsight.daemon.impl.bu.run(bu.java)
at com.intellij.progress.ProgressManager.a(ProgressManager.java:2)
at com.intellij.codeInsight.daemon.impl.cl.run(cl.java:42)
