Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090803 Ubuntu/9.04 (jaunty) Shiretoko/3.5.2 Build Identifier: I20090611-1540 Linked resources can point to non-existent resources. If the link is an absolute path to a non-existent resource, then no NPE results. I think the problem is with relative references to non-existent resources. Reproducible: Always Steps to Reproduce: 1. Copy and paste this into .project <linkedResources> <link> <name>test</name> <type>2</type> <locationURI>FreeRTOS_ROOT/Demo/Common</locationURI> </link> </linkedResources> 2. Try to launch debug session tied to .project 3. NPE java.lang.NullPointerException at org.eclipse.cdt.debug.internal.core.model.CDebugTarget.getSourceLookupPath(CDebugTarget.java:1837) at org.eclipse.cdt.debug.internal.core.model.CDebugTarget.getSourceLookupPath(CDebugTarget.java:1848) at org.eclipse.cdt.debug.internal.core.model.CDebugTarget.getSourceLookupPath(CDebugTarget.java:1848) at org.eclipse.cdt.debug.internal.core.model.CDebugTarget.setSourceLookupPath(CDebugTarget.java:1815) at org.eclipse.cdt.debug.internal.core.model.CDebugTarget.initializeSourceLookupPath(CDebugTarget.java:383) at org.eclipse.cdt.debug.internal.core.model.CDebugTarget.initialize(CDebugTarget.java:282) at org.eclipse.cdt.debug.internal.core.model.CDebugTarget.<init>(CDebugTarget.java:275) at org.eclipse.cdt.debug.core.CDIDebugModel$1.run(CDIDebugModel.java:100) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782) at org.eclipse.cdt.debug.core.CDIDebugModel.newDebugTarget(CDIDebugModel.java:105) at org.eclipse.cdt.debug.core.CDIDebugModel.newDebugTarget(CDIDebugModel.java:172) at ... Workaround: don't use linked resources