From 4ff406f9dfccccef6e4ad40c31e856dabd2f3119 Mon Sep 17 00:00:00 2001 From: Steven Gill Date: Thu, 6 May 2010 15:43:56 -0700 Subject: [PATCH] fixed geolocation null bug --- framework/src/com/phonegap/GeoListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/com/phonegap/GeoListener.java b/framework/src/com/phonegap/GeoListener.java index 613cbc15..3fb8fe96 100644 --- a/framework/src/com/phonegap/GeoListener.java +++ b/framework/src/com/phonegap/GeoListener.java @@ -78,7 +78,7 @@ public class GeoListener { loc = mGps.getLocation(); if (loc == null && mNetwork != null) loc = mNetwork.getLocation(); - else + if(loc == null) loc = new Location(LocationManager.NETWORK_PROVIDER); return loc; }