← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20706: minor npe fix

 

------------------------------------------------------------
revno: 20706
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-10-15 10:54:49 +0700
message:
  minor npe fix
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.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/program/Program.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java	2015-10-07 07:06:47 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java	2015-10-15 03:54:49 +0000
@@ -440,7 +440,7 @@
     @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
     public boolean isRegistration()
     {
-        return programType.equals( ProgramType.WITH_REGISTRATION );
+        return programType == ProgramType.WITH_REGISTRATION;
     }
 
     @JsonProperty
@@ -448,7 +448,7 @@
     @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
     public boolean isWithoutRegistration()
     {
-        return programType.equals( ProgramType.WITHOUT_REGISTRATION );
+        return programType == ProgramType.WITHOUT_REGISTRATION;
     }
 
     @JsonProperty