Fixing nulls

This commit is contained in:
Brock Whitten 2010-02-16 10:28:07 -08:00
parent 17528c15bb
commit c638fbfa69

View File

@ -66,8 +66,10 @@ public class GeoListener {
// This stops the listener // This stops the listener
void stop() void stop()
{ {
mGps.stop(); if(mGps != null)
mNetwork.stop(); mGps.stop();
if(mNetwork != null)
mNetwork.stop();
} }
public Location getCurrentLocation() { public Location getCurrentLocation() {