Skip to content

Exception getting metric if group is empty #51

Description

@jvalkeal

Tracking group metrics with no members throws exception. Need to check nulls...

2012-01-10 17:10:39,127 WARN [tomcat-http--1] [org.hyperic.hq.hqu.PluginWrapper@156] Error handling request from /media/uhome/hyperic/server-4.6-EE/hq-engine/hq-server/webapps/ROOT/hqu/wmvisualizer
java.lang.NullPointerException
at org.codehaus.groovy.runtime.dgmimpl.NumberNumberDiv$DoubleInteger.call(NumberNumberDiv.java:247)
at MetricstoreController.getMetrics(MetricstoreController:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions