commit | 38b76dbe7ca07ec1b5c3aab9c944b36ac2d90265 | [log] [tgz] |
---|---|---|
author | Valentin Pavlov Valchev <vvalchev@apache.org> | Wed Sep 28 09:01:28 2011 +0000 |
committer | Valentin Pavlov Valchev <vvalchev@apache.org> | Wed Sep 28 09:01:28 2011 +0000 |
tree | d725651e8221179484cec7ab0007fc6787a1c914 | |
parent | 821616c5eb9250f04f6a33ad25d3bb5249dd0498 [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; + } } } }