Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdater.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdater.java b/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdater.java
index 77ebd59e5..b18c09590 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdater.java
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/AutomaticUpdater.java
@@ -70,19 +70,19 @@ public class AutomaticUpdater implements IUpdateListener {
}
boolean sameProfile(String another) {
- if (another.equals(IProfileRegistry.SELF)) {
+ if (IProfileRegistry.SELF.equals(another)) {
IProfile profile = getProfileRegistry().getProfile(another);
if (profile != null) {
another = profile.getProfileId();
}
}
- if (profileId.equals(IProfileRegistry.SELF)) {
+ if (IProfileRegistry.SELF.equals(profileId)) {
IProfile profile = getProfileRegistry().getProfile(profileId);
if (profile != null) {
profileId = profile.getProfileId();
}
}
- return profileId.equals(another);
+ return (profileId == another) || (profileId != null && profileId.equals(another));
}
/*

Back to the top