Changeset 29215 in osm for applications/editors/josm/plugins/smed2/src/s57/S57obj.java
- Timestamp:
- 2013-01-29T21:49:08+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/s57/S57obj.java
r29209 r29215 150 150 static { 151 151 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()); 153 154 } 154 155 } … … 173 174 174 175 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))) 176 177 return StrObj.get(type); 177 178 else
Note:
See TracChangeset
for help on using the changeset viewer.