← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3372: Display null for NULL data values in raw data mode of the data browser. Fixes Bug #758768

 

------------------------------------------------------------
revno: 3372
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-04-12 15:46:30 +0200
message:
  Display null for NULL data values in raw data mode of the data browser. Fixes Bug #758768
modified:
  dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/databrowser/util/DataBrowserUtils.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/databrowser/util/DataBrowserUtils.java'
--- dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/databrowser/util/DataBrowserUtils.java	2011-03-14 09:16:45 +0000
+++ dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/databrowser/util/DataBrowserUtils.java	2011-04-12 13:46:30 +0000
@@ -244,7 +244,10 @@
     }
 
     private static String checkValue( String value, boolean isZeroAdded )
-    {
+    {   if  ( value == null )
+        {
+            return "null";
+        }
         return (value.equals( "0" ) && !isZeroAdded) ? "" : value;
     }
 }