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 194696 - NPE in IncludeHierarchyView
Summary: NPE in IncludeHierarchyView
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 195895 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-25 15:32 UTC by dnikitin
Modified: 2011-02-24 17:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
disk.cc.cc in Hierarchy tree (327.92 KB, image/png)
2011-01-31 16:48 UTC, dnikitin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dnikitin 2011-01-25 15:32:24 UTC
Product Version: NetBeans IDE Dev (Build 201101240001)
Java: 1.6.0_21; Java HotSpot(TM) Client VM 17.0-b17
System: Windows 7 version 6.1 running on x86; Cp1251; ru_RU (nb)
---------------------------------------------------------
-- open disk.h from Quote in editor
-- invoke Navigate->View Include Hierarchy from context menu
-- rename disk.cc to disk_new.cc
-- open Hierarchy View and press Refresh button or invoke via context menu
=> NPE
-- delete project w/ sources
=> project is deleted from ide, but some files remains on a hard-disk.


java.lang.NullPointerException
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getName(FileImpl.java:1279)
	at org.netbeans.modules.cnd.navigation.includeview.IncludedChildren$MyComparator.compare(IncludedChildren.java:140)
	at org.netbeans.modules.cnd.navigation.includeview.IncludedChildren$MyComparator.compare(IncludedChildren.java:137)
	at java.util.Arrays.mergeSort(Arrays.java:1270)
	at java.util.Arrays.sort(Arrays.java:1210)
	at java.util.Collections.sort(Collections.java:159)
	at org.netbeans.modules.cnd.navigation.includeview.IncludedChildren.resetKeys(IncludedChildren.java:87)
	at org.netbeans.modules.cnd.navigation.includeview.IncludedChildren.addNotify(IncludedChildren.java:127)
	at org.openide.nodes.Children.callAddNotify(Children.java:568)
	at org.openide.nodes.EntrySupport$Default.getArray(EntrySupport.java:770)
	at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:172)
	at org.openide.nodes.EntrySupport$Default.snapshot(EntrySupport.java:149)
	at org.openide.nodes.Children.snapshot(Children.java:525)
	at org.openide.explorer.view.TreeView.expandNode(TreeView.java:626)
	at org.netbeans.modules.cnd.navigation.includeview.IncludeHierarchyPanel$7$1.run(IncludeHierarchyPanel.java:398)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Vladimir Kvashin 2011-01-26 11:57:43 UTC
http://hg.netbeans.org/cnd-main/rev/2f697103cfa5
Comment 2 Quality Engineering 2011-01-27 08:23:31 UTC
Integrated into 'main-golden', will be available in build *201101270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2f697103cfa5
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fix for #194696 -  NPE in IncludeHierarchyView
Comment 3 dnikitin 2011-01-31 16:48:31 UTC
Created attachment 105526 [details]
disk.cc.cc in Hierarchy tree

Now Include Hierarchy View contains disk.cc.cc file in the tree. I investigate problem will file new bug.
Comment 4 dnikitin 2011-01-31 18:08:15 UTC
see iz194922
Comment 5 Vladimir Kvashin 2011-02-24 17:55:03 UTC
*** Bug 195895 has been marked as a duplicate of this bug. ***