Community
Participate
Working Groups
I20080212-0800 1. Create a hidden project 2. Exit/restart 3. Attempt to create a link folder in this project Observe: You get the following NPE: !ENTRY org.eclipse.core.resources 4 2 2008-02-20 10:58:34.062 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at org.eclipse.core.internal.resources.LocationValidator.validateLinkLocationURI(LocationValidator.java:101) at org.eclipse.core.internal.resources.Workspace.validateLinkLocationURI(Workspace.java:2046) at org.eclipse.core.internal.resources.Resource.assertLinkRequirements(Resource.java:154) at org.eclipse.core.internal.resources.Resource.createLink(Resource.java:586) at org.eclipse.core.internal.resources.Resource.createLink(Resource.java:568)
Created attachment 90511 [details] Test The test that illustrates the issue.
Created attachment 90512 [details] Test
Created attachment 90533 [details] Fix This reveals a pervasive problem in resource internals wherever we use IWorkspaceRoot#getProjects, which omits hidden projects. In most cases we should be including hidden projects to ensure we handle them like other resources.
Fix and test released.
Verified in I20080327-0100.