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 168500 - NullPointerException at javax.swing.filechooser.FileSystemView.getFiles
Summary: NullPointerException at javax.swing.filechooser.FileSystemView.getFiles
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Portalpack (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Satyaranjan D
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 17:59 UTC by gasdia73
Modified: 2009-07-14 15:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 150350


Attachments
stacktrace (5.74 KB, text/plain)
2009-07-13 17:59 UTC, gasdia73
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gasdia73 2009-07-13 17:59:27 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
gasdia73: trying to add a new hook to the web project by :

right-click on project -> new -> new hook



Stacktrace: 
java.lang.NullPointerException
        at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:434)
        at org.netbeans.modules.portalpack.websynergy.portlets.util.ui.DirectoryTree$DirNode.populateChildren(DirectoryTree.java:199)
        at org.netbeans.modules.portalpack.websynergy.portlets.util.ui.DirectoryTree$DirNode.getChildCount(DirectoryTree.java:184)
        at javax.swing.tree.DefaultTreeModel.getChildCount(DefaultTreeModel.java:168)
        at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1461)
        at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1270)
Comment 1 gasdia73 2009-07-13 17:59:33 UTC
Created attachment 84671 [details]
stacktrace
Comment 2 tkellerer 2009-07-14 11:01:45 UTC
Same here with NB 6.7 and PortalPack 3.0.2
Comment 3 tkellerer 2009-07-14 11:04:33 UTC
I just noticed that when I select a "regular" Tomcat 6.0 as the "runtime" this does not happen. 

When I select a Liferay Portal Server as the runtime, I either get this exception (when using New -> Hook Plugin) or a
dialog where I cannot select the hook type (when using New -> Other -> HookPlugin)

Comment 4 kk_sriram 2009-07-14 15:10:44 UTC
This is the env I am running on
Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Portalpack 3.0.2_all
Target run time LiferayPortal 5.1.x/5.2.x
DD diabled


I am not able to reproduce this issue in my setup
I can create a plain web project like Test-hook->rightclick->New->HookPlugin and everything goes fine..