Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-11-16 01:36:59 +0000
committerKarsten Thoms2017-12-12 12:33:11 +0000
commit85d1ab104cfb519b8a43180897a3303df369ac8b (patch)
tree2cdb580561351aafe94cf24cb3998fd5cd98926a
parentcbf9125c7675b2a35f12232be8d8df66ef8bd0d5 (diff)
downloadeclipse.platform.ua-I20171216-1500.tar.gz
eclipse.platform.ua-I20171216-1500.tar.xz
eclipse.platform.ua-I20171216-1500.zip
When no adapter of type StandbyPart is available on the platform, standByPart will be null. Signal failure then. Change-Id: Ib25b3e74c26e207c524cbb0a333029e06ed09d84 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-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