Skip to content

Commit

Permalink
back-port Null pointer check added for system package (eclipse-pde#1455)
Browse files Browse the repository at this point in the history
* Null pointer check added for system package

Hashtable does not store null values , so if systempackage comes as null it will throw null pointer exception
  • Loading branch information
Khushboo-Sharma-110597 authored and gireeshpunathil committed Nov 4, 2024
1 parent 479670d commit ebd3b2d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ public void resolveState() {
ee = profileProps.getProperty(Constants.FRAMEWORK_EXECUTIONENVIRONMENT);

prop = new Hashtable<>();
prop.put(ProfileManager.SYSTEM_PACKAGES, systemPackages);
if (systemPackages != null) {
prop.put(ProfileManager.SYSTEM_PACKAGES, systemPackages);
}
if (profileName.equals("JavaSE-9")) { //$NON-NLS-1$
eeJava9 = ee;
}
Expand Down

0 comments on commit ebd3b2d

Please sign in to comment.