Community
Participate
Working Groups
Environment: Helios M6 RCP package and latest EMF SDK from http://download.eclipse.org/releases/helios Steps to reproduce: 1. Open the new wizard 2. Select "Ecode Model" from the "Eclipse Modeling Framework" category 3. Click on the "Next" button 4. A NullPointerException is written to the error log (see attached stacktrace)
Created attachment 162854 [details] Stacktrace
*** Bug 306932 has been marked as a duplicate of this bug. ***
This looks to be a problem in the platform. This code private boolean isFilteredByParent() { if (linkTargetPath != null) return false; IPath containerPath = resourceGroup.getContainerFullPath(); String resourceName = resourceGroup.getResource(); if (resourceName.length() > 0) { IPath newFolderPath = containerPath.append(resourceName); assumes that container path isn't null but this call makes it clear /** * Returns the path of the currently selected container or null if no * container has been selected. Note that the container may not exist yet if * the user entered a new container name in the field. * * @return The path of the container, or <code>null</code> */ public IPath getContainerFullPath() { return containerGroup.getContainerFullPath(); } that it could be null if there is no selected container. As such, if you invoke the wizard making sure there is no selection in the workspace (a necessary step to reproduce this bug) this code will encounter a null pointer exception. I believe there should be a guard for this so that false is returned.
*** This bug has been marked as a duplicate of bug 305961 ***
*** Bug 307054 has been marked as a duplicate of this bug. ***