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 - NullPointerException at org.netbeans.editor.Utilities.getDocument
Summary: NullPointerException at org.netbeans.editor.Utilities.getDocument
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-09 22:55 UTC by MackSix
Modified: 2014-04-05 03:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204476


Attachments
stacktrace (2.91 KB, text/plain)
2013-10-09 22:55 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
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