1
0
Fork 0

Fix crash in GPS module.

Fixes crash on exit (during property untie). Also potential run-time crash.
This commit is contained in:
ThorstenB 2011-01-21 23:44:23 +01:00
parent 99ee9a1bbb
commit d365689d5c

View file

@ -1158,7 +1158,7 @@ double GPS::getWP1Bearing() const
double GPS::getWP1MagBearing() const
{
if (!_dataValid) {
if (!_dataValid || !_wayptController.get()) {
return -9999.0;
}