-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException in PDEState.querySystemPackages #709
Comments
I also get now constantly "An internal error occurred during: "Initializing plug-in models".
|
Could you please check in which scenario (VMInstall + EE + EE-default) this happen. |
This happens when a JVM can't be queried for system packages, you can simulate this by having a JDK for an EE and delete the this fixed it on the JDT part but now PDE suffers from this as it somewhere gets a also see here why its hard to recover from such state: |
Ok. Could please provide a PR with an extra null check? |
I had a quick look at this and while an extra null check would fix the NPE you will likely have follow-up errors because you then have no system-packages provided for that EE and all bundles with that EE that import system-packages will fail to resolve. So to really fix this all VMs suitable for an EE have to be queried until one returns non-null system packages. This actually not really a regression from #693 because for modular JDK the same logic was used before. |
@jukzi I think this is a different issue than the NPE and might better be handled in a separate issue. |
I have updates my SDK an now getting NPE
The text was updated successfully, but these errors were encountered: