diff options
| author | Thomas Watson | 2014-07-09 14:14:14 +0000 |
|---|---|---|
| committer | Thomas Watson | 2014-07-09 14:14:14 +0000 |
| commit | e4a0d3fdc8aacb47eab2634f7c5286667b75cef0 (patch) | |
| tree | 8c1448865cf139efeb2b0d7ad4409436d51ccbc2 | |
| parent | 0daf037d3b387b111df9761b127b1e7c079a1919 (diff) | |
| download | rt.equinox.framework-e4a0d3fdc8aacb47eab2634f7c5286667b75cef0.tar.gz rt.equinox.framework-e4a0d3fdc8aacb47eab2634f7c5286667b75cef0.tar.xz rt.equinox.framework-e4a0d3fdc8aacb47eab2634f7c5286667b75cef0.zip | |
Bug 438652 - NPE when exporting a bundle with 'Deployable Plug-ins and
Fragments'
- Fixed by using empty collection when platform properties do not
contain values for osname or processor
Change-Id: Ia699723db6a054cfbfd39068a84d84e83ba72024
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi.compatibility.state/META-INF/MANIFEST.MF b/bundles/org.eclipse.osgi.compatibility.state/META-INF/MANIFEST.MF index 413b2028c..b03742449 100644 --- a/bundles/org.eclipse.osgi.compatibility.state/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.osgi.compatibility.state/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name Bundle-SymbolicName: org.eclipse.osgi.compatibility.state -Bundle-Version: 1.0.0.qualifier +Bundle-Version: 1.0.1.qualifier ExtensionBundle-Activator: org.eclipse.osgi.compatibility.state.Activator Fragment-Host: org.eclipse.osgi;bundle-version="3.10.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.6 diff --git a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/NativeCodeSpecificationImpl.java b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/NativeCodeSpecificationImpl.java index f15e47ae4..e980689f2 100644 --- a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/NativeCodeSpecificationImpl.java +++ b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/NativeCodeSpecificationImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 IBM Corporation and others. + * Copyright (c) 2007, 2014 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -77,7 +77,7 @@ public class NativeCodeSpecificationImpl extends VersionConstraintImpl implement platformOS = aliasMapper.getCanonicalOSName((String) platformOS); platformOSAliases = aliasMapper.getOSNameAliases((String) platformOS); } else { - platformOSAliases = Collections.singleton(platformOS); + platformOSAliases = platformOS == null ? Collections.emptyList() : Collections.singleton(platformOS); } osNamesLoop: for (String osName : osNames) { String canonicalOSName = aliasMapper.getCanonicalOSName(osName); @@ -109,7 +109,7 @@ public class NativeCodeSpecificationImpl extends VersionConstraintImpl implement platformProcessor = aliasMapper.getCanonicalProcessor((String) platformProcessor); platformProcessorAliases = aliasMapper.getProcessorAliases((String) platformProcessor); } else { - platformProcessorAliases = Collections.singletonList(platformProcessor); + platformProcessorAliases = platformProcessor == null ? Collections.emptyList() : Collections.singleton(platformProcessor); } processorLoop: for (String processor : processors) { String canonicalProcessor = aliasMapper.getCanonicalProcessor(processor); |
