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 187973 - NullPointerException at org.netbeans.modules.jumpto.file.FileDescription.getIcon
Summary: NullPointerException at org.netbeans.modules.jumpto.file.FileDescription.getIcon
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Jump To (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Victor Vasilyev
URL:
Keywords: SIMPLEFIX
: 188242 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-23 06:12 UTC by tnleeuw
Modified: 2010-09-17 03:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170902


Attachments
stacktrace (7.53 KB, text/plain)
2010-06-23 06:12 UTC, tnleeuw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tnleeuw 2010-06-23 06:12:49 UTC
Build: NetBeans IDE Dev (Build 201006220001)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows Vista

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.jumpto.file.FileDescription.getIcon(FileDescription.java:100)
   at org.netbeans.modules.jumpto.file.FileSearchAction$Renderer.getListCellRendererComponent(FileSearchAction.java:789)
   at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:190)
   at javax.swing.plaf.basic.BasicListUI.paintImpl(BasicListUI.java:299)
   at javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:222)
   at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)
Comment 1 tnleeuw 2010-06-23 06:12:52 UTC
Created attachment 100342 [details]
stacktrace
Comment 2 Alexei Mokeev 2010-07-27 08:52:57 UTC
Valid issue. Likely caused by the lack of DataObject at line 100 of 
http://hg.netbeans.org/main/file/cec1a3f9f04b/jumpto/src/org/netbeans/modules/jumpto/file/FileDescription.java and therefore NPE on attempt to get Icon.

Can be either substituted by stub icon as done for 'no project' case or just ignored.
Comment 3 Victor Vasilyev 2010-09-16 08:50:08 UTC
*** Bug 188242 has been marked as a duplicate of this bug. ***
Comment 4 Victor Vasilyev 2010-09-16 09:35:30 UTC
Fixed in the main trunk
http://hg.netbeans.org/main/rev/5b3285bdf90a
Comment 5 Quality Engineering 2010-09-17 03:23:43 UTC
Integrated into 'main-golden', will be available in build *201009170000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5b3285bdf90a
User: Victor G. Vasilyev <vvg@netbeans.org>
Log: #187973 -  NullPointerException at org.netbeans.modules.jumpto.file.FileDescription.getIcon