dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18173
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7557: local vn - Fixed NPE when generating Org-listing report.
------------------------------------------------------------
revno: 7557
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-07-10 15:31:36 +0700
message:
local vn - Fixed NPE when generating Org-listing report.
modified:
local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportOrgGroupListingAction.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 'local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportOrgGroupListingAction.java'
--- local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportOrgGroupListingAction.java 2012-07-10 04:54:06 +0000
+++ local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportOrgGroupListingAction.java 2012-07-10 08:31:36 +0000
@@ -103,7 +103,7 @@
*/
exportReportItems = null;
orgUnitGroupAtLevels = null;
- childrenGroupMap = null;
+ childrenGroupMap.clear();
}
// -------------------------------------------------------------------------
@@ -161,7 +161,7 @@
Collection<ExportItem> exportReportItems, Sheet sheet )
{
List<OrganisationUnit> organisationUnits = null;
-
+
for ( ExportItem reportItem : exportReportItems )
{
int run = 0;
@@ -273,7 +273,7 @@
ExcelUtils.writeFormulaByPOI( firstRow, reportItem.getColumn(), totalFormula, sheet, this.csFormula );
}
}
-
+
organisationUnits = null;
}
}