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.
Summary: | Null Pointer -- Cannot use the IDE now. Won't run | ||
---|---|---|---|
Product: | editor | Reporter: | querist <querist> |
Component: | -- Other -- | Assignee: | issues@editor <issues> |
Status: | VERIFIED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
querist
2003-11-11 16:00:26 UTC
I've checked out the original 1.12 version of Annotations.java and the line causing the problem is if (anno.getMark() != mark) { so the "anno" must be null for the NPE to be thrown. This means that the LineAnnotations structure is empty but there is still a mark assigned to it in the lineAnnotationsByMark map. As there were problems with having the lineAnnotationsArray sorted and updated properly during document modifications the particular LineAnnotations could become empty resulting in the NPE. So yes it should very likely be a part of the problems addressed by the patch for issue 33165. Closing as dup. *** This issue has been marked as a duplicate of 33165 *** Is this fixed or available as a patch for version 3.5.1 Issue 33165 ( the duplicate ) is reported as being in 3.6 Unfortunately we cannot backport the issue 33165 into 3.5.1. As the fix insisted on proper document locking there were several other issues (mainly deadlocks) revealed and fixed after integration of 33165 and in fact the process still continues (e.g. issue 40026 was integrated recently). I think that we would not be able to collect all the additional necessary fixes and extract them cleanly out from the openide and editor module classes without colliding with the new features added to the modules. As a possible hack you could try to take openide.jar and nb-editor.jar and editor.jar from current dev builds and run 3.5.1 on it but no warranty that this solution would work. Verified it is duplicate of issue 33165. |