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.
dev build 200609090000 I randomly get the attached exception when closing an editor tab.
Created attachment 33790 [details] stack-trace
Raising priority to P2 so that it can be fixed during high resistance. Justification: a dialog box with error message, can be quite annoying to the user. I am not able to reproduce it and the code has been there for a long time so it looks like this occurs in very specific situation. However I should be able to provide at least a workaround based only on the stack trace quickly.
fixed. Change log: http://j2ee.netbeans.org/source/browse/j2ee/verification/src/org/netbeans/modules/j2ee/verification/ JEEVerificationHintsProvider.java?r1=1.1.2.7&r2=1.1.2.7.6.1
The fix looks OK to me though I am slightly concerned about source of the NPE. There are more unchecked methods calls like error.getAttachedAnnotatable() which for the first sight might return null. So I would recomend you to check also the others, but if you are sure that they cannot be null, go ahead a commit.
I have added additional check for null value based on Marek's review. /cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/Attic/ JEEVerificationProblemMark.java,v <-- JEEVerificationProblemMark.java new revision: 1.1.2.8.2.1; previous revision: 1.1.2.8
I am OK with the fix and afree with commiting to release55 branch.
Committing to the 'release55' branch. Checking in JEEVerificationProblemMark.java; /cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/Attic/ JEEVerificationProblemMark.java,v <-- JEEVerificationProblemMark.java new revision: 1.1.2.9; previous revision: 1.1.2.8 done Checking in JEEVerificationHintsProvider.java; /cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/Attic/ JEEVerificationHintsProvider.java,v <-- JEEVerificationHintsProvider.java new revision: 1.1.2.8; previous revision: 1.1.2.7
Verified NetBeans5.5Dev 200609150000 No exceptions during closing editor tab