From: <cl...@hy...> - 2008-12-29 22:47:11
|
Author: clee Date: 2008-12-29 14:47:05 -0800 (Mon, 29 Dec 2008) New Revision: 12104 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=12104 Modified: trunk/src/org/hyperic/hq/ui/util/DashboardUtils.java Log: [HHQ-2729] Ignore invalid entity IDs in preferences Modified: trunk/src/org/hyperic/hq/ui/util/DashboardUtils.java =================================================================== --- trunk/src/org/hyperic/hq/ui/util/DashboardUtils.java 2008-12-29 21:15:03 UTC (rev 12103) +++ trunk/src/org/hyperic/hq/ui/util/DashboardUtils.java 2008-12-29 22:47:05 UTC (rev 12104) @@ -34,6 +34,7 @@ import org.hyperic.hq.appdef.shared.AppdefEntityID; import org.hyperic.hq.appdef.shared.AppdefResourceValue; +import org.hyperic.hq.appdef.shared.InvalidAppdefTypeException; import org.hyperic.hq.auth.shared.SessionNotFoundException; import org.hyperic.hq.auth.shared.SessionTimeoutException; import org.hyperic.hq.authz.server.session.AuthzSubject; @@ -77,7 +78,11 @@ Iterator i = list.iterator(); while (i.hasNext()) { - resources.add(new AppdefEntityID((String) i.next())); + try { + resources.add(new AppdefEntityID((String) i.next())); + } catch (InvalidAppdefTypeException e) { + // Skip resource + } } return resources; |