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.

Bug 164142 - NullPointerException at org.netbeans.modules.xml.text.folding.XmlFoldManager.scheduleFoldUpdate
Summary: NullPointerException at org.netbeans.modules.xml.text.folding.XmlFoldManager....
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Svata Dedic
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-30 07:26 UTC by gtg
Modified: 2012-01-31 09:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 109827


Attachments
stacktrace (1.86 KB, text/plain)
2009-04-30 07:26 UTC, gtg
Details
stacktrace (2.98 KB, text/plain)
2009-09-22 15:22 UTC, john_hopper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gtg 2009-04-30 07:26:24 UTC
Build: NetBeans IDE Dev (Build 200904210201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.27.21-0.1-default, amd64

User Comments:
GUEST: Starting of the IDE



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.xml.text.folding.XmlFoldManager.scheduleFoldUpdate(XmlFoldManager.java:166)
        at org.netbeans.modules.xml.text.folding.XmlFoldManager.changedUpdate(XmlFoldManager.java:137)
        at org.netbeans.modules.editor.fold.FoldOperationImpl.changedUpdate(FoldOperationImpl.java:220)
        at org.netbeans.modules.editor.fold.FoldHierarchyExecution.changedUpdate(FoldHierarchyExecution.java:745)
        at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.changedUpdate(PriorityDocumentListenerList.java:119)
        at javax.swing.text.AbstractDocument.fireChangedUpdate(AbstractDocument.java:214)
Comment 1 gtg 2009-04-30 07:26:32 UTC
Created attachment 81271 [details]
stacktrace
Comment 2 john_hopper 2009-09-22 15:22:09 UTC
Build: NetBeans IDE Dev (Build 200909220201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.30-ARCH, i386

User Comments: 
Opening a project group with 11 different maven projects ranging from jbi to native jni. This was done by opening the project group by right clicking in the Projects view/window 

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.xml.text.folding.XmlFoldManager.scheduleFoldUpdate(XmlFoldManager.java:166)
        at org.netbeans.modules.xml.text.folding.XmlFoldManager.changedUpdate(XmlFoldManager.java:137)
        at org.netbeans.modules.editor.fold.FoldOperationImpl.changedUpdate(FoldOperationImpl.java:220)
        at org.netbeans.modules.editor.fold.FoldHierarchyExecution.changedUpdate(FoldHierarchyExecution.java:745)
        at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.changedUpdate(PriorityDocumentListenerList.java:119)
        at javax.swing.text.AbstractDocument.fireChangedUpdate(AbstractDocument.java:214)
Comment 3 john_hopper 2009-09-22 15:22:34 UTC
Created attachment 88115 [details]
stacktrace
Comment 4 Exceptions Reporter 2010-03-25 12:15:55 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=109827
Comment 5 Svata Dedic 2011-10-26 12:49:11 UTC
Seems as an arcane race condition in the fold scheduling / file close operation
Comment 6 Svata Dedic 2012-01-31 09:39:37 UTC
Changeset: 43c710590b2f
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-01-31 10:39
Message:   Issue #164142 - NullPointerException at org.netbeans.modules.xml.text.folding.XmlFoldManager.scheduleFoldUpdate: fixed
Tightened synchronization. Delayed tasks check whether they are still valid.