dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43307
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21984: minor fix
------------------------------------------------------------
revno: 21984
committer: Morten Olav Hansen <morten@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2016-02-17 13:24:15 +0700
message:
minor fix
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata2/DefaultMetadataExportService.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-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata2/DefaultMetadataExportService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata2/DefaultMetadataExportService.java 2016-02-04 04:08:38 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata2/DefaultMetadataExportService.java 2016-02-17 06:24:15 +0000
@@ -109,8 +109,12 @@
query.setDefaultOrder();
List<? extends IdentifiableObject> objects = queryService.query( query );
- log.info( "Exported " + objects.size() + " objects of type " + klass.getSimpleName() );
- metadata.put( klass, objects );
+
+ if ( !objects.isEmpty() )
+ {
+ log.info( "Exported " + objects.size() + " objects of type " + klass.getSimpleName() );
+ metadata.put( klass, objects );
+ }
}
log.info( "Export done at " + new Date() );