felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vvalc...@apache.org
Subject svn commit: r1176789 - /felix/trunk/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java
Date Wed, 28 Sep 2011 09:01:28 GMT
Author: vvalchev
Date: Wed Sep 28 09:01:28 2011
New Revision: 1176789

URL: http://svn.apache.org/viewvc?rev=1176789&view=rev
Log:
the pid could be missing - e.g. no metatype for the concrete pid, so we must catch illegalargumentexception

Modified:
    felix/trunk/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java

Modified: felix/trunk/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java?rev=1176789&r1=1176788&r2=1176789&view=diff
==============================================================================
--- felix/trunk/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java
(original)
+++ felix/trunk/webconsole-plugins/ds/src/main/java/org/apache/felix/webconsole/plugins/ds/internal/WebConsolePlugin.java
Wed Sep 28 09:01:28 2011
@@ -470,7 +470,11 @@ class WebConsolePlugin extends SimpleWeb
                 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;
+                    }
                 }
             }
         }



Mime
View raw message