projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Don't crash if there's no GPS coord to write KML
[fw/altos]
/
altoslib
/
AltosKML.java
diff --git
a/altoslib/AltosKML.java
b/altoslib/AltosKML.java
index 4738ac9104925fab8af6eefb57f5a7a214dd600a..aa98f0e69bf78a07de44940ce784be9b3bfa488a 100644
(file)
--- a/
altoslib/AltosKML.java
+++ b/
altoslib/AltosKML.java
@@
-244,6
+244,8
@@
public class AltosKML implements AltosWriter {
public void write(AltosGPS gps, double alt)
{
public void write(AltosGPS gps, double alt)
{
+ if (gps == null)
+ return;
if (gps.lat == AltosLib.MISSING)
return;
if (gps.lon == AltosLib.MISSING)
if (gps.lat == AltosLib.MISSING)
return;
if (gps.lon == AltosLib.MISSING)