Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-04-25 21:58:36 +0000
committerJohn Arthorne2008-04-25 21:58:36 +0000
commitaa3f646c23041fa134ca5de1eb73adc4cf9d4c0f (patch)
tree1dff0ccd2a1af86d2fbd31ae7c2b492998ca1eef
parent51367f6af06d2a10b95519a072a0e7eea92860b8 (diff)
downloadrt.equinox.p2-aa3f646c23041fa134ca5de1eb73adc4cf9d4c0f.tar.gz
rt.equinox.p2-aa3f646c23041fa134ca5de1eb73adc4cf9d4c0f.tar.xz
rt.equinox.p2-aa3f646c23041fa134ca5de1eb73adc4cf9d4c0f.zip
Bug 228892 [ui] NPE clicking profile in admin UI
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/actions/ProfileModificationAction.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/actions/ProfileModificationAction.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/actions/ProfileModificationAction.java
index a50f74c73..255a6ad29 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/actions/ProfileModificationAction.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/actions/ProfileModificationAction.java
@@ -137,6 +137,8 @@ public abstract class ProfileModificationAction extends ProvisioningAction {
protected int getLock(IInstallableUnit iu) {
try {
IProfile profile = ProvisioningUtil.getProfile(profileId);
+ if (profile == null)
+ return IInstallableUnit.LOCK_NONE;
String value = profile.getInstallableUnitProperty(iu, IInstallableUnit.PROP_PROFILE_LOCKED_IU);
if (value != null)
return Integer.parseInt(value);

Back to the top