Ignore:
Timestamp:
2011-11-07T09:37:47+01:00 (13 years ago)
Author:
glebius
Message:

Don't fail if epx/epy not present in report.

Submitted by: Pavel Shramov <shramov mexmat.net>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/src/livegps/LiveGpsAcquirer.java

    r26542 r27021  
    283283            speed = (new Float(report.getDouble("speed"))).floatValue();
    284284            course = (new Float(report.getDouble("track"))).floatValue();
    285             epx = (new Float(report.getDouble("epx"))).floatValue();
    286             epy = (new Float(report.getDouble("epy"))).floatValue();
     285            if (report.has("epx"))
     286                epx = (new Float(report.getDouble("epx"))).floatValue();
     287            if (report.has("epy"))
     288                epy = (new Float(report.getDouble("epy"))).floatValue();
    287289
    288290            return new LiveGpsData(lat, lon, course, speed, epx, epy);
Note: See TracChangeset for help on using the changeset viewer.