dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43282
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21976: minor fix
------------------------------------------------------------
revno: 21976
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2016-02-16 13:18:17 +0700
message:
minor fix
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/preheat/DefaultPreheatService.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/preheat/DefaultPreheatService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/preheat/DefaultPreheatService.java 2016-02-16 06:00:52 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/preheat/DefaultPreheatService.java 2016-02-16 06:18:17 +0000
@@ -223,8 +223,8 @@
String uid = identifiableObject.getUid();
String code = identifiableObject.getCode();
- if ( uid != null ) uidMap.get( klass ).add( uid );
- if ( code != null ) codeMap.get( klass ).add( code );
+ if ( !StringUtils.isEmpty( uid ) ) uidMap.get( klass ).add( uid );
+ if ( !StringUtils.isEmpty( code ) ) codeMap.get( klass ).add( code );
}
}
else
@@ -241,8 +241,8 @@
String uid = identifiableObject.getUid();
String code = identifiableObject.getCode();
- if ( uid != null ) uidMap.get( klass ).add( uid );
- if ( code != null ) codeMap.get( klass ).add( code );
+ if ( !StringUtils.isEmpty( uid ) ) uidMap.get( klass ).add( uid );
+ if ( !StringUtils.isEmpty( code ) ) codeMap.get( klass ).add( code );
}
}