← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8533: Removed try/catch block designed for confusion

 

------------------------------------------------------------
revno: 8533
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-10-15 13:58:42 +0200
message:
  Removed try/catch block designed for confusion
modified:
  dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.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-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java	2012-10-15 11:21:06 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java	2012-10-15 11:58:42 +0000
@@ -97,13 +97,7 @@
 
         if ( parent == null )
         {
-            try
-            {                
-                parent = organisationUnitService.getOrganisationUnit( Integer.parseInt( parentId ) );
-            }
-            catch ( NumberFormatException e )
-            {
-            }
+            parent = organisationUnitService.getOrganisationUnit( Integer.parseInt( parentId ) );
         }
 
         level = level == null ? organisationUnitService.getLevelOfOrganisationUnit( parent.getId() ) : level;