Commits

Anonymous committed dfe2418

Preventing AssertionError.

  • Participants
  • Parent commits f5c4854

Comments (0)

Files changed (1)

File project/src/org/netbeans/modules/eclipse/project/ActionProviderImpl.java

 
                 ClassPath launcher = findLauncher();
 
-                assert launcher != null;;
+                assert launcher != null;
 
                 props.put("launcher", launcher.toString(PathConversionMode.SKIP));
                 props.put("workspace", project.getWorkspace().getAbsolutePath()); //XXX
     private ClassPath findLauncher() {
         EclipsePlatform platform = project.getPlatform();
 
-        assert platform != null;
+        if (platform == null) return null;
 
         Collection<? extends URL> launcher = platform.findBundleJarsForBundleSymbolicName("org.eclipse.equinox.launcher");