Ignore:
Timestamp:
2019-10-27T13:23:38+01:00 (5 years ago)
Author:
donvip
Message:

fix #josm16524 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/importvec/src/org/openstreetmap/josm/plugins/importvec/SvgImportTask.java

    r35182 r35198  
    177177                }
    178178                SVGDiagram diagram = universe.getDiagram(f.toURI());
     179                if (diagram == null) {
     180                    throw new IOException("Can't read SVG diagram: " + f.toURI());
     181                }
    179182                ShapeElement root = diagram.getRoot();
    180183                if (root == null) {
    181                     throw new IOException("Can't find root SVG element");
     184                    throw new IOException("Can't find root SVG element: " + diagram);
    182185                }
    183186                Rectangle2D bbox = root.getBoundingBox();
Note: See TracChangeset for help on using the changeset viewer.