Ignore:
Timestamp:
2016-03-31T18:25:07+02:00 (8 years ago)
Author:
erigrus
Message:

fixes crash appearing in windows

Location:
applications/editors/josm/plugins/indoorhelper
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/indoorhelper

    • Property svn:ignore set to
      .gitignore
  • applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java

    r32134 r32137  
    408408                MapListSetting validatorMapListSetting = (MapListSetting) settings.
    409409                                get("validator.org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.entries");
    410                 List<Map<String, String>> validatorMaps;
    411                 validatorMaps = validatorMapListSetting.getValue();
     410                List<Map<String, String>> validatorMaps = new ArrayList<>();
     411                if(validatorMapListSetting!=null){
     412                        validatorMaps = validatorMapListSetting.getValue();
     413                }
    412414               
    413415                MapListSetting styleMapListSetting = (MapListSetting) settings.
    414416                                get("mappaint.style.entries");
    415                 List<Map<String, String>> styleMaps;
    416                 styleMaps = styleMapListSetting.getValue();
    417                                
     417                List<Map<String, String>> styleMaps = new ArrayList<>();
     418                if(styleMapListSetting != null){
     419                        styleMaps = styleMapListSetting.getValue();
     420                }
     421                                                       
    418422                if(enabled){
    419423                        //set the validator active
Note: See TracChangeset for help on using the changeset viewer.