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

Summary: NullPointerException at org.netbeans.modules.jumpto.file.FileDescription.getIcon
Product: utilities Reporter: tnleeuw <tnleeuw>
Component: Jump ToAssignee: Victor Vasilyev <vvg>
Status: RESOLVED FIXED    
Severity: normal CC: tnleeuw
Priority: P3 Keywords: SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 170902
Attachments: stacktrace

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