dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #14824
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5142: Fixed npe vulnerability
------------------------------------------------------------
revno: 5142
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-11-11 14:23:20 +0100
message:
Fixed npe vulnerability
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.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-api/src/main/java/org/hisp/dhis/dataset/DataSet.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java 2011-08-26 20:38:26 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java 2011-11-11 13:23:20 +0000
@@ -240,7 +240,7 @@
public DataSet increaseVersion()
{
- this.version = this.version + 1;
+ version = version != null ? version + 1 : 1;
return this;
}