From: <sc...@hy...> - 2010-03-09 18:40:03
|
Author: scottmf Date: 2010-03-09 10:39:54 -0800 (Tue, 09 Mar 2010) New Revision: 14361 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=14361 Modified: trunk/src/org/hyperic/hq/bizapp/server/session/MeasurementBossEJBImpl.java Log: added null check Modified: trunk/src/org/hyperic/hq/bizapp/server/session/MeasurementBossEJBImpl.java =================================================================== --- trunk/src/org/hyperic/hq/bizapp/server/session/MeasurementBossEJBImpl.java 2010-03-09 17:51:18 UTC (rev 14360) +++ trunk/src/org/hyperic/hq/bizapp/server/session/MeasurementBossEJBImpl.java 2010-03-09 18:39:54 UTC (rev 14361) @@ -2963,6 +2963,9 @@ public double getAvailability(AuthzSubject subj, AppdefEntityID id) throws AppdefEntityNotFoundException, PermissionException { + if (id == null) { + return MeasurementConstants.AVAIL_UNKNOWN; + } final Map measCache = getMetricManager().getAvailMeasurements(Collections.singleton(id)); Map availCache = null; |