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 Dec 9, 2024
1 parent 479670d commit 82996ec
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/org.eclipse.pde.build/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.pde.build;singleton:=true
Bundle-Version: 3.12.300.qualifier
Bundle-Version: 3.12.301.qualifier
Bundle-ClassPath: pdebuild.jar
Bundle-Activator: org.eclipse.pde.internal.build.BuildActivator
Bundle-Vendor: %providerName
Expand Down
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
2 changes: 1 addition & 1 deletion features/org.eclipse.pde-feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feature
id="org.eclipse.pde"
label="%featureName"
version="3.15.300.qualifier"
version="3.15.301.qualifier"
provider-name="%providerName"
license-feature="org.eclipse.license"
license-feature-version="0.0.0">
Expand Down
2 changes: 1 addition & 1 deletion ui/org.eclipse.pde/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.pde;singleton:=true
Bundle-Version: 3.13.2600.qualifier
Bundle-Version: 3.13.2601.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
2 changes: 1 addition & 1 deletion ui/org.eclipse.pde/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<relativePath>../../</relativePath>
</parent>
<artifactId>org.eclipse.pde</artifactId>
<version>3.13.2600-SNAPSHOT</version>
<version>3.13.2601-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

<build>
Expand Down

0 comments on commit 82996ec

Please sign in to comment.