eclipse-efx / efxclipse-eclipse

Eclipse Public License 2.0
15 stars 5 forks source link

NPE in JavaFXClassPathExtender (Related to unresolved BREE?) #61

Closed CamilleLetavernier closed 5 years ago

CamilleLetavernier commented 5 years ago

I'm getting this exception:

java.lang.NullPointerException
    at org.eclipse.fx.ide.pde.core.JavaFXClassPathExtender.findVMForEnv(JavaFXClassPathExtender.java:48)
    at org.eclipse.fx.ide.pde.core.JavaFXClassPathExtender.getVM(JavaFXClassPathExtender.java:74)
    at org.eclipse.fx.ide.pde.core.JavaFXClassPathExtender.getInitialEntries(JavaFXClassPathExtender.java:180)
    at org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.computePluginEntries(RequiredPluginsClasspathContainer.java:102)
    at org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.getClasspathEntries(RequiredPluginsClasspathContainer.java:80)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:3153)

It's quite bad, as it happens in JDT/PDE, which in turns causes pretty much any click to throw that exception (It also happens when closing Eclipse, during the save workspace step). However, my workspace is a little bit specific; so that exception probably wouldn't happen in most cases:

If I switch back to my master branch, which still uses the JavaSE-1.8 BREE, the exception is gone (And I guess add a JavaSE-11 Execution Environment would work, too)