Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-02-18 06:19:09 +0000
committerslewis2009-02-18 06:19:09 +0000
commitb06fb044feab07e0d134e8a989e1ad3a80d3668f (patch)
treedb7bb8ed6081323df148684da11c838fc3de3d14 /providers
parent035282dee1e40274a0adfadeb9f482e2667d5961 (diff)
downloadorg.eclipse.ecf-b06fb044feab07e0d134e8a989e1ad3a80d3668f.tar.gz
org.eclipse.ecf-b06fb044feab07e0d134e8a989e1ad3a80d3668f.tar.xz
org.eclipse.ecf-b06fb044feab07e0d134e8a989e1ad3a80d3668f.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=265250
Diffstat (limited to 'providers')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/provider/discovery/SingletonDiscoveryContainer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/provider/discovery/SingletonDiscoveryContainer.java b/providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/provider/discovery/SingletonDiscoveryContainer.java
index 64a9aa9a0..5324484dd 100644
--- a/providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/provider/discovery/SingletonDiscoveryContainer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.discovery/src/org/eclipse/ecf/provider/discovery/SingletonDiscoveryContainer.java
@@ -69,7 +69,11 @@ public class SingletonDiscoveryContainer implements IDiscoveryContainerAdapter,
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
public Object getAdapter(Class adapter) {
- return this;
+ if (adapter == null)
+ return null;
+ if (adapter.isInstance(this))
+ return this;
+ return null;
}
//******************* below just delegates ******************//

Back to the top