commit | 8b9c058a2dfa8f60544307b293fdea882781d09a | [log] [tgz] |
---|---|---|
author | Valentin Pavlov Valchev <vvalchev@apache.org> | Fri Jun 04 08:52:54 2010 +0000 |
committer | Valentin Pavlov Valchev <vvalchev@apache.org> | Fri Jun 04 08:52:54 2010 +0000 |
tree | aca61622e7ec0445a48cf1a914aad768a604bda2 | |
parent | 8f660c54780098913b409f6491b5c5e9728da106 [diff] |
Fixed FELIX-2390 /WebConsole Config Manager problem/ https://issues.apache.org/jira/browse/FELIX-2390 git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@951329 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java index 5129242..d95893b 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
@@ -396,18 +396,23 @@ } // insert and entry for the PID - ObjectClassDefinition ocd = this.getObjectClassDefinition(cfgs[i], locale); - String name; - if (ocd != null) + ObjectClassDefinition ocd = null; + try { - name = ocd.getName(); + ocd = this.getObjectClassDefinition(cfgs[i], locale); } - else + catch (IllegalArgumentException t) { - name = pid; + // MetaTypeProvider.getObjectClassDefinition might throw illegal + // argument exception. So we must catch it here, otherwise the + // other configurations will not be shown + // See https://issues.apache.org/jira/browse/FELIX-2390 } - optionsPlain.put(pid, name); + if (ocd != null) + { + optionsPlain.put(pid, ocd.getName()); + } } for (Iterator i = optionsPlain.keySet().iterator(); i.hasNext();)