=== modified file 'dhis-2/dhis-services/dhis-service-mapping/src/main/java/org/hisp/dhis/mapping/MapViewDeletionHandler.java' --- dhis-2/dhis-services/dhis-service-mapping/src/main/java/org/hisp/dhis/mapping/MapViewDeletionHandler.java 2010-04-12 21:23:33 +0000 +++ dhis-2/dhis-services/dhis-service-mapping/src/main/java/org/hisp/dhis/mapping/MapViewDeletionHandler.java 2010-04-13 14:05:21 +0000 @@ -115,7 +115,7 @@ { for ( MapView mapView : mappingService.getAllMapViews() ) { - if ( mapView.getMapLegendSet().equals( mapLegendSet ) ) + if ( mapView.getMapLegendSet() != null && mapView.getMapLegendSet().equals( mapLegendSet ) ) // MapLegendSet is optional { mappingService.deleteMapView( mapView ); }