dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31942
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16322: Fixed nullpointer vulnerability in TrackedEntityFormDeletionHandler
------------------------------------------------------------
revno: 16322
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-08-05 15:37:40 +0200
message:
Fixed nullpointer vulnerability in TrackedEntityFormDeletionHandler
modified:
dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityFormDeletionHandler.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-tracker/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityFormDeletionHandler.java'
--- dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityFormDeletionHandler.java 2014-07-14 04:44:27 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityFormDeletionHandler.java 2014-08-05 13:37:40 +0000
@@ -62,6 +62,10 @@
public void deleteProgram( Program program )
{
TrackedEntityForm form = formService.getFormsWithProgram( program );
- formService.deleteTrackedEntityForm( form );
+
+ if ( form != null )
+ {
+ formService.deleteTrackedEntityForm( form );
+ }
}
}