Ignore:
Timestamp:
2013-01-29T21:49:08+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/s57/S57obj.java

    r29209 r29215  
    150150        static {
    151151                for (Map.Entry<Obj, String> entry : ObjStr.entrySet()) {
    152                         StrObj.put(entry.getValue(), entry.getKey());
     152                        if (!entry.getValue().isEmpty())
     153                                StrObj.put(entry.getValue(), entry.getKey());
    153154                }
    154155        }
     
    173174
    174175        public static Obj enumType(String type) { // Convert OSeaM object string to OSeaM object enumeration
    175                 if (StrObj.containsKey(type))
     176                if ((type != null) && !type.isEmpty() && (StrObj.containsKey(type)))
    176177                        return StrObj.get(type);
    177178                else
Note: See TracChangeset for help on using the changeset viewer.