Changeset 3097 in josm for trunk/src


Ignore:
Timestamp:
2010-03-08T21:46:08+01:00 (10 years ago)
Author:
jttt
Message:

Fix #4652 Unexpected error when LiveGPS tracking is started

File:
1 edited

Legend:

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

    r2990 r3097  
    611611        for (GpxTrack trk: data.tracks) {
    612612            for (GpxTrackSegment trkSeg: trk.getSegments()) {
    613                 if (trkSeg.getBounds().intersects(box)) {
     613                if (trkSeg.getBounds() != null && trkSeg.getBounds().intersects(box)) {
    614614                    visibleSegments.add(trkSeg.getWayPoints());
    615615                }
Note: See TracChangeset for help on using the changeset viewer.