=== modified file 'dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java' --- dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java 2013-03-08 15:17:40 +0000 +++ dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java 2013-03-09 06:35:22 +0000 @@ -577,12 +577,7 @@ } } - if ( organisationUnit == null ) - { - return new ResponseEntity( MessageResponseUtils.jsonMessage( HttpStatus.NOT_FOUND.toString(), - "No object with that identifier exists." ), headers, HttpStatus.NOT_FOUND ); - } - else if ( organisationUnitUpdate.getCode() != null ) + if ( organisationUnitUpdate.getCode() != null ) { OrganisationUnit ouByCode = organisationUnitService.getOrganisationUnitByCode( organisationUnitUpdate.getCode() );