← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15858: Minor npe check

 

------------------------------------------------------------
revno: 15858
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-06-26 12:19:55 +0700
message:
  Minor npe check
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/LinearNodePipeline.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-api/src/main/java/org/hisp/dhis/node/LinearNodePipeline.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/LinearNodePipeline.java	2014-06-25 13:32:36 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/LinearNodePipeline.java	2014-06-26 05:19:55 +0000
@@ -61,6 +61,11 @@
         for ( NodeTransformerWithArgs nodeTransformerWithArgs : nodeTransformers )
         {
             node = nodeTransformerWithArgs.transformer.transform( node, nodeTransformerWithArgs.args );
+
+            if ( node == null )
+            {
+                return null;
+            }
         }
 
         return node;