diff options
author | Karsten Thoms | 2017-11-16 01:36:59 +0000 |
---|---|---|
committer | Karsten Thoms | 2017-12-12 12:33:11 +0000 |
commit | 85d1ab104cfb519b8a43180897a3303df369ac8b (patch) | |
tree | 2cdb580561351aafe94cf24cb3998fd5cd98926a | |
parent | cbf9125c7675b2a35f12232be8d8df66ef8bd0d5 (diff) | |
download | eclipse.platform.ua-85d1ab104cfb519b8a43180897a3303df369ac8b.tar.gz eclipse.platform.ua-85d1ab104cfb519b8a43180897a3303df369ac8b.tar.xz eclipse.platform.ua-85d1ab104cfb519b8a43180897a3303df369ac8b.zip |
Bug 145139 - Added null guardI20180104-2000I20180104-0030I20180103-2000I20180103-0140I20180102-2215I20180102-2000I20180101-2000I20171231-2000I20171230-1500I20171229-2000I20171228-2000I20171227-2000I20171226-2000I20171225-2000I20171224-2000I20171223-1500I20171222-2000I20171221-2000I20171220-2000I20171219-2000I20171218-2000I20171217-2000I20171216-1500I20171215-2000I20171215-0930I20171215-0215I20171215-0120I20171214-2000I20171214-0120I20171213-2000I20171212-2000
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.java | 10 |
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); } /** |