------------------------------------------------------------
revno: 1539
committer: HISP <h...@hisp-pc>
branch nick: trunk
timestamp: Thu 2010-03-04 10:26:15 +0530
message:
fixed minor bug : checking patient list is null
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patientattributevalue/DefaultPatientAttributeValueService.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-patient/src/main/java/org/hisp/dhis/patientattributevalue/DefaultPatientAttributeValueService.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patientattributevalue/DefaultPatientAttributeValueService.java 2010-02-28 03:32:13 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patientattributevalue/DefaultPatientAttributeValueService.java 2010-03-04 04:56:15 +0000
@@ -100,7 +100,9 @@
public Collection<PatientAttributeValue> getPatientAttributeValues( Collection<Patient> patients )
{
- return patientAttributeValueStore.get( patients );
+ if( patients != null && patients.size() > 0 )
+ return patientAttributeValueStore.get( patients );
+ return null;
}
public void savePatientAttributeValue( PatientAttributeValue patientAttributeValue )
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp