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 b112aca2f1..55977855ba 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,9 +441,10 @@ public void resolveState() { IExecutionEnvironment env = JavaRuntime.getExecutionEnvironmentsManager().getEnvironment(javaProfiles[j]); String systemPackages = getSystemPackages(env, profileProps); String ee = profileProps.getProperty(FRAMEWORK_EXECUTIONENVIRONMENT); - Dictionary 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; }