diff options
| author | Vikas Chandra | 2018-03-26 12:46:37 +0000 |
|---|---|---|
| committer | Vikas Chandra | 2018-03-26 12:46:37 +0000 |
| commit | 4103b1e8ca1cbfcefce21e50860ea1b8175a02a6 (patch) | |
| tree | 34b71dbaa3ffe21f14e2a26c59fe04b20647f580 | |
| parent | 0e085d0187261f0f5d8358effcba91beb59075d5 (diff) | |
| download | eclipse.pde.ui-4103b1e8ca1cbfcefce21e50860ea1b8175a02a6.tar.gz eclipse.pde.ui-4103b1e8ca1cbfcefce21e50860ea1b8175a02a6.tar.xz eclipse.pde.ui-4103b1e8ca1cbfcefce21e50860ea1b8175a02a6.zip | |
Remove redundant check Bug 532773 - NPE during API analysis while usingI20180326-2000
Java 10
Change-Id: I2b8ca0beed90c9d669943e90e3707cc5f7f12b0a
Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
| -rw-r--r-- | apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/ApiBaseline.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/ApiBaseline.java b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/ApiBaseline.java index 23ad1f0610..51af71b1d2 100644 --- a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/ApiBaseline.java +++ b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/ApiBaseline.java @@ -360,12 +360,11 @@ public class ApiBaseline extends ApiElement implements IApiBaseline, IVMInstallC private void initialize(Properties profile, ExecutionEnvironmentDescription description) throws CoreException { String value = profile.getProperty(Constants.FRAMEWORK_SYSTEMPACKAGES); if (value == null) { - if (value == null) { - // Java 10 onwards calculate this via profile in this plugin - Properties javaProfilePropertiesForVMPackage = getJavaProfilePropertiesForVMPackage(description.getProperty(ExecutionEnvironmentDescription.CLASS_LIB_LEVEL)); - value = javaProfilePropertiesForVMPackage.getProperty(Constants.FRAMEWORK_SYSTEMPACKAGES); - } + // Java 10 onwards calculate this via profile in this plugin + Properties javaProfilePropertiesForVMPackage = getJavaProfilePropertiesForVMPackage(description.getProperty(ExecutionEnvironmentDescription.CLASS_LIB_LEVEL)); + value = javaProfilePropertiesForVMPackage.getProperty(Constants.FRAMEWORK_SYSTEMPACKAGES); } + String[] systemPackages = null; if (value != null) { systemPackages = value.split(","); //$NON-NLS-1$ |
