← Back to team overview

dhis2-devs team mailing list archive

[Bug 722151] Re: NPE when user does not click an orgunit in data analysis modules

 

** Changed in: dhis2
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/722151

Title:
  NPE when user does not click an orgunit in data analysis modules

Status in DHIS 2 - District Health Information Software:
  Fix Committed

Bug description:
  In Min-Max, STDEV, and Gap analysis, when the user does not select an orgunit, an NPE results.
  The user should be warned that they must select an orgunit and  the error should be handled gracefully. 

  as an example..

  Exception (java.lang.NullPointerException): null

      * org.hisp.dhis.dataanalysis.MinMaxOutlierAnalysisService.analyse(MinMaxOutlierAnalysisService.java:81)
      * sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown source)
      * sun.reflect.NativeMethodAccessorImpl.invoke(Unknown source)
      * sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown source)
      * java.lang.reflect.Method.invoke(Unknown source)
      * org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      * org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      * org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      * org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
      * org.hisp.dhis.jdbc.StatementInterceptor.intercept(StatementInterceptor.java:65)
      * sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown source)
      * sun.reflect.NativeMethodAccessorImpl.invoke(Unknown source)
      * sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown source)
      * java.lang.reflect.Method.invoke(Unknown source)



References