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 236969

Summary: NullPointerException at org.netbeans.editor.Utilities.getDocument
Product: java Reporter: MackSix
Component: NavigationAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: MackSix
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204476
Attachments: stacktrace

Description MackSix 2013-10-09 22:55:25 UTC
Build: NetBeans IDE 7.4 (Build 201310012201)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Windows 7

User Comments:
MackSix: Pressing the "Refresh for Entity Under cursor" button on the Hierarchy window.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.editor.Utilities.getDocument(Utilities.java:1203)
   at org.netbeans.modules.java.navigation.hierarchy.HierarchyTopComponent.actionPerformed(HierarchyTopComponent.java:277)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
Comment 1 MackSix 2013-10-09 22:55:27 UTC
Created attachment 140967 [details]
stacktrace
Comment 2 MackSix 2013-10-09 22:56:59 UTC
1. Open Java File.
2. Press Alt+F12
3. Close Java File.
4. Press "Refresh for Entity Under cursor" button on the Hierarchy window.

This exception is thrown.

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 3 Tomas Zezula 2014-03-28 15:19:14 UTC
Fixed jet-main de90dc2a345e
Comment 4 Quality Engineering 2014-04-05 03:30:07 UTC
Integrated into 'main-silver', will be available in build *201404050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/de90dc2a345e
User: Tomas Zezula <tzezula@netbeans.org>
Log: #236969:NullPointerException at org.netbeans.editor.Utilities.getDocument