dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #26861
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13300: minor NPE check
------------------------------------------------------------
revno: 13300
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-12-18 11:24:31 +0100
message:
minor NPE check
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/SaveExecutionDateAction.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-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/SaveExecutionDateAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/SaveExecutionDateAction.java 2013-12-09 21:32:59 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/SaveExecutionDateAction.java 2013-12-18 10:24:31 +0000
@@ -164,7 +164,7 @@
if ( programStageInstance == null )
{
Program program = (programId == null) ? null : programService.getProgram( programId );
- Patient patient = patientService.getPatient( patientId );
+ Patient patient = (patientId == null) ? null : patientService.getPatient( patientId );
programStageInstance = programStageInstanceService.createProgramStageInstance( patient, program, dateValue, organisationUnit );
}