← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1684: Improved nullpointer vulnerability

 

------------------------------------------------------------
revno: 1684
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Mon 2010-03-22 13:22:45 +0100
message:
  Improved nullpointer vulnerability
modified:
  dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/completeness/impl/AbstractDataSetCompletenessService.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-reporting/src/main/java/org/hisp/dhis/completeness/impl/AbstractDataSetCompletenessService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/completeness/impl/AbstractDataSetCompletenessService.java	2010-02-02 13:21:02 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/completeness/impl/AbstractDataSetCompletenessService.java	2010-03-22 12:22:45 +0000
@@ -221,7 +221,7 @@
     {
         final Period period = periodService.getPeriod( periodId );
         
-        Date deadline = getConfiguration().getDeadline( period );
+        Date deadline = getConfiguration() != null ? getConfiguration().getDeadline( period ) : null;
         
         final Collection<? extends Source> children = organisationUnitService.getOrganisationUnitWithChildren( organisationUnitId );