mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +08:00
Fixing nulls
This commit is contained in:
parent
17528c15bb
commit
c638fbfa69
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user