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 99950 - IAE while expanding functional tests node
Summary: IAE while expanding functional tests node
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-04 11:17 UTC by Lukas Jungmann
Modified: 2007-04-04 19:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
preject view is broken after this exception - see two projects on first node (43.29 KB, image/png)
2007-04-04 11:21 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-04-04 11:17:28 UTC
build 200704031800

-open $NB_ALL/j2ee module
-expand project node -> func. tests

=> java.lang.IllegalArgumentException: Tried to pass null folder arg
	at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:1038)
	at
org.netbeans.modules.apisupport.project.queries.AccessibilityQueryImpl.isPubliclyAccessible(AccessibilityQueryImpl.java:74)
	at
org.netbeans.modules.java.project.ProjectAccessibilityQuery.isPubliclyAccessible(ProjectAccessibilityQuery.java:41)
	at
org.netbeans.api.java.queries.AccessibilityQuery.isPubliclyAccessible(AccessibilityQuery.java:69)
	at
org.netbeans.modules.java.project.PackageDisplayUtils.getIcon(PackageDisplayUtils.java:117)
	at
org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode.getMyIcon(PackageViewChildren.java:957)
	at
org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode.getIcon(PackageViewChildren.java:922)
	at org.openide.nodes.FilterNode.getIcon(FilterNode.java:530)
...

The only workaround for this so far is to restart the IDE :(
Comment 1 Jindrich Sedek 2007-04-04 11:21:00 UTC
Created attachment 40424 [details]
preject view is broken after this exception - see two projects on first node
Comment 2 Jesse Glick 2007-04-04 17:50:19 UTC
Fixed while changing behavior of query a bit.

Checking in
src/org/netbeans/modules/apisupport/project/queries/AccessibilityQueryImpl.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/queries/AccessibilityQueryImpl.java,v
 <--  AccessibilityQueryImpl.java
new revision: 1.7; previous revision: 1.6
done
Checking in
test/unit/src/org/netbeans/modules/apisupport/project/queries/AccessibilityQueryImplTest.java;
/shared/data/ccvs/repository/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/queries/AccessibilityQueryImplTest.java,v
 <--  AccessibilityQueryImplTest.java
new revision: 1.5; previous revision: 1.4
done
Comment 3 Lukas Jungmann 2007-04-04 19:46:35 UTC
v., thanks