← Back to team overview

dhis2-devs team mailing list archive

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

 

Public bug reported:

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)

** Affects: dhis2
     Importance: Undecided
         Status: New

** Description changed:

- 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. 
+ 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)
+     * 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)

-- 
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:
  New

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)



Follow ups

References