Changeset 521 in josm for trunk


Ignore:
Timestamp:
2008-01-13T00:50:52+01:00 (17 years ago)
Author:
gebner
Message:

Fix NPE happening with malformed <bound> elements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r367 r521  
    133133                                        String bbox = atts.getValue("box");
    134134                                        String origin = atts.getValue("origin");
     135                                        if (origin == null) origin = "";
    135136                                        if (bbox != null) {
    136137                                                String[] b = bbox.split(",");
    137                                                 Bounds bounds = null;
     138                                                Bounds bounds = new Bounds();
    138139                                                if (b.length == 4)
    139140                                                        bounds = new Bounds(
Note: See TracChangeset for help on using the changeset viewer.