Ignore:
Timestamp:
2018-07-20T20:02:05+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16501 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r13987 r14037  
    489489            Rectangle2D anchorRect = new Rectangle2D.Double(anchor.getInView().getX() % HATCHED_SIZE,
    490490                    anchor.getInView().getY() % HATCHED_SIZE, HATCHED_SIZE, HATCHED_SIZE);
    491             g.setPaint(new TexturePaint(hatched, anchorRect));
     491            if (hatched != null) {
     492                g.setPaint(new TexturePaint(hatched, anchorRect));
     493            }
    492494            g.fill(a);
    493495        }
Note: See TracChangeset for help on using the changeset viewer.