dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #26366
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13068: minor NPE check
------------------------------------------------------------
revno: 13068
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-11-29 13:57:35 +0100
message:
minor NPE check
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/AbstractEventService.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-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/AbstractEventService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/AbstractEventService.java 2013-11-25 14:54:19 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/AbstractEventService.java 2013-11-29 12:57:35 +0000
@@ -717,7 +717,7 @@
if ( programStage.getCaptureCoordinates() )
{
- if ( coordinate.isValid() )
+ if ( coordinate != null && coordinate.isValid() )
{
programStageInstance.setLongitude( coordinate.getLongitude() );
programStageInstance.setLatitude( coordinate.getLatitude() );