dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35940
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18407: minor fix, check for empty uid list in IdObjectStore
------------------------------------------------------------
revno: 18407
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-02-25 15:32:15 +0700
message:
minor fix, check for empty uid list in IdObjectStore
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/hibernate/HibernateIdentifiableObjectStore.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/common/hibernate/HibernateIdentifiableObjectStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/hibernate/HibernateIdentifiableObjectStore.java 2015-02-09 09:52:30 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/hibernate/HibernateIdentifiableObjectStore.java 2015-02-25 08:32:15 +0000
@@ -435,7 +435,7 @@
@SuppressWarnings( "unchecked" )
public List<T> getByUid( Collection<String> uids )
{
- if ( uids == null )
+ if ( uids == null || uids.isEmpty() )
{
return new ArrayList<>();
}