summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault (Ericsson)2013-01-28 13:35:45 (EST)
committerPascal Rapicault (Ericsson)2013-01-28 13:35:45 (EST)
commit5847cf1c1eb179f06e56a072caad4d37121159bf (patch)
tree8a531221d4ef68e3123ef66b009bdaa55fa6854d
parent7f6c2dbb7fe7118944bb19efc32c46b1a96b0bf3 (diff)
downloadrt.equinox.p2-5847cf1c1eb179f06e56a072caad4d37121159bf.zip
rt.equinox.p2-5847cf1c1eb179f06e56a072caad4d37121159bf.tar.gz
rt.equinox.p2-5847cf1c1eb179f06e56a072caad4d37121159bf.tar.bz2
Fix potential NPE when throwing exceptionv20130128-183545
-rw-r--r--bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java
index 9e02654..c8309f2 100644
--- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java
+++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java
@@ -38,7 +38,7 @@ import org.xml.sax.SAXException;
public class SimpleProfileRegistry implements IProfileRegistry, IAgentService {
- private static final String SIMPLE_PROFILE_REGISTRY_INTERNAL = "_simpleProfileRegistry_internal_";
+ private static final String SIMPLE_PROFILE_REGISTRY_INTERNAL = "_simpleProfileRegistry_internal_"; //$NON-NLS-1$
private static final String ECLIPSE_IGNORE_USER_CONFIGURATION = "eclipse.ignoreUserConfiguration"; //$NON-NLS-1$
private static final String PROFILE_REGISTRY = "profile registry"; //$NON-NLS-1$
private static final String PROFILE_PROPERTIES_FILE = "state.properties"; //$NON-NLS-1$
@@ -881,7 +881,7 @@ public class SimpleProfileRegistry implements IProfileRegistry, IAgentService {
public synchronized void unlockProfile(IProfile profile) {
if (profile == null)
- throw new IllegalArgumentException(NLS.bind(Messages.profile_not_registered, profile.getProfileId()));
+ throw new IllegalArgumentException(NLS.bind(Messages.profile_not_registered, "")); //$NON-NLS-1$
internalUnlockProfile(profile);
}