dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40902
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20837: minor fix
------------------------------------------------------------
revno: 20837
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-10-22 09:38:41 +0700
message:
minor fix
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/DefaultTrackedEntityAttributeService.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-core/src/main/java/org/hisp/dhis/trackedentity/DefaultTrackedEntityAttributeService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/DefaultTrackedEntityAttributeService.java 2015-10-19 14:51:03 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/DefaultTrackedEntityAttributeService.java 2015-10-22 02:38:41 +0000
@@ -205,7 +205,7 @@
{
Assert.notNull( trackedEntityAttribute, "trackedEntityAttribute is required." );
- if ( !trackedEntityAttribute.isUnique() )
+ if ( !trackedEntityAttribute.isUnique() || value == null )
{
return null;
}