Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/url/IntroURL.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/url/IntroURL.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/url/IntroURL.java
index 7a008e268..3b21a982a 100644
--- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/url/IntroURL.java
+++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/url/IntroURL.java
@@ -237,13 +237,9 @@ public class IntroURL implements IIntroURL {
StandbyPart standbyPart = introPart
.getAdapter(StandbyPart.class);
- boolean success = standbyPart.showContentPart(partId, input);
- if (success)
- return true;
-
- // we do not have a valid partId or we failed to instantiate part or
- // create the part content, empty part will be shown. Signal failure.
- return false;
+ // We may not have a valid partId or we might fail to instantiate part or
+ // create the part content. An empty part will be shown. Signal failure.
+ return standbyPart != null && standbyPart.showContentPart(partId, input);
}
/**

Back to the top