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 210031 - NullPointerException at org.netbeans.modules.versioning.ui.history.HistoryComponent.canCloseElement
Summary: NullPointerException at org.netbeans.modules.versioning.ui.history.HistoryCom...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: History (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-24 13:35 UTC by sunbiz
Modified: 2012-03-26 14:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186231


Attachments
stacktrace (4.42 KB, text/plain)
2012-03-24 13:35 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2012-03-24 13:35:26 UTC
Build: NetBeans IDE Dev (Build 201203200400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
sunbiz: Closing window with history tab




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.versioning.ui.history.HistoryComponent.canCloseElement(HistoryComponent.java:292)
   at org.netbeans.core.multiview.MultiViewPeer.canClose(MultiViewPeer.java:663)
   at org.netbeans.core.multiview.MultiViewCloneableTopComponent.closeLast(MultiViewCloneableTopComponent.java:317)
   at org.openide.windows.CloneableTopComponent$Ref.unregister(CloneableTopComponent.java:412)
   at org.openide.windows.CloneableTopComponent$Ref.access$300(CloneableTopComponent.java:276)
   at org.openide.windows.CloneableTopComponent.canClose(CloneableTopComponent.java:215)
Comment 1 sunbiz 2012-03-24 13:35:27 UTC
Created attachment 117192 [details]
stacktrace
Comment 2 Tomas Stupka 2012-03-26 08:35:36 UTC
do you remember what kind of a file was it?
Comment 3 sunbiz 2012-03-26 08:52:49 UTC
Was probably one of the read-only source files that are generated when ctrl-click on a Class usage. And then clicked on the History tab... that throws and exception. And then does not allow to close that window.
Comment 4 Tomas Stupka 2012-03-26 08:56:01 UTC
(In reply to comment #3)
> Was probably one of the read-only source files that are generated when
yes, thats it. thanks.
Comment 5 Tomas Stupka 2012-03-26 14:44:51 UTC
fixed in core-main #37b476ad4202