commit | b3c70cf27a29c381d1c7e2e496071aa8b2929063 | [log] [tgz] |
---|---|---|
author | Valentin Valchev <vvalchev@apache.org> | Wed Sep 28 09:01:28 2011 +0000 |
committer | Valentin Valchev <vvalchev@apache.org> | Wed Sep 28 09:01:28 2011 +0000 |
tree | d725651e8221179484cec7ab0007fc6787a1c914 | |
parent | 50017eabcc10e0b04621b5055d0cc8fae61c8748 [diff] |
the pid could be missing - e.g. no metatype for the concrete pid, so we must catch illegalargumentexception git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1176789 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java b/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java index 4af5c48..0e9439a 100644 --- a/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java +++ b/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java
@@ -470,7 +470,11 @@ final MetaTypeInformation mti = mts.getMetaTypeInformation(providingBundle); if (mti != null) { - return mti.getObjectClassDefinition(pid, null) != null; + try { + return mti.getObjectClassDefinition(pid, null) != null; + } catch (IllegalArgumentException e) { + return false; + } } } }