From ebd3b2d6be793f3a7bff99220d3708a00917c45b Mon Sep 17 00:00:00 2001 From: sharmakh <65189541+sharmakh@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:26:39 +0530 Subject: [PATCH] back-port Null pointer check added for system package (#1455) * 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 --- .../src/org/eclipse/pde/internal/build/site/PDEState.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/PDEState.java b/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/PDEState.java index 794420866e..9e5c8710d6 100644 --- a/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/PDEState.java +++ b/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/PDEState.java @@ -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; }