Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2009-05-09 00:31:39 +0000
committerPascal Rapicault2009-05-09 00:31:39 +0000
commite3c01d10ab43447ee31b89d0310adf3fe2faa8b7 (patch)
treee7a18f91f93a35030bb1cbdc13dabdfbbddd3858 /bundles
parent532e283040b3f370df655aef0f409218b448e91c (diff)
downloadrt.equinox.p2-e3c01d10ab43447ee31b89d0310adf3fe2faa8b7.tar.gz
rt.equinox.p2-e3c01d10ab43447ee31b89d0310adf3fe2faa8b7.tar.xz
rt.equinox.p2-e3c01d10ab43447ee31b89d0310adf3fe2faa8b7.zip
Bug 267337 - [director] NPE in Director App when initializing profile without bundle pool
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/Application.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/Application.java b/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/Application.java
index 655845ff6..1643a5206 100644
--- a/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/Application.java
+++ b/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/Application.java
@@ -142,11 +142,10 @@ public class Application implements IApplication {
Properties props = new Properties();
props.setProperty(IProfile.PROP_INSTALL_FOLDER, destination.toOSString());
props.setProperty(IProfile.PROP_FLAVOR, flavor);
- if (bundlePool != null)
- if (bundlePool.equals(Messages.destination_commandline))
- props.setProperty(IProfile.PROP_CACHE, destination.toOSString());
- else
- props.setProperty(IProfile.PROP_CACHE, bundlePool);
+ if (bundlePool == null || bundlePool.equals(Messages.destination_commandline))
+ props.setProperty(IProfile.PROP_CACHE, destination.toOSString());
+ else
+ props.setProperty(IProfile.PROP_CACHE, bundlePool);
if (roamingProfile)
props.setProperty(IProfile.PROP_ROAMING, Boolean.TRUE.toString());

Back to the top