This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NullPointerException and BadLocationException are thrown very often during commit validation suite. It happens when test is closing all documents opened in editor. I was able to reproduce it manually but I don't have exact steps. It seems that scanning has to be in progress when you call 'Close All Documents' action. Build 20060608-0933, WindowsXP, JDK1.5.0_06.
Created attachment 30892 [details] Stack traces
Created attachment 31041 [details] Another IndexOutOfBoundsException stack trace.
org.openide.text issue I guess.
Hmm, both exceptions show they occured under document's read lock, that means that the document was emptied during close w/o write lock somehow...
*** Issue 66986 has been marked as a duplicate of this issue. ***
Petre, any chance to do something about this now? 5.5?
Created attachment 34569 [details] NPE stacktrace
the NPE appeared when I closed only one document in 5.5 060920 build
Yes, it can probably happen if you just modify it and then quickly close, I guess. The problem was there even in 5.0, no change in that area. Updating version.
*** Issue 78955 has been marked as a duplicate of this issue. ***
Rare enough and risky fix, potentially -> P3, future.
Reassigning to new module owner mslama.
Closing as this are was changed a lot. Please reopen if it happens again.
Verified.