Added null check for mListener in SkyHook.java
closes #66 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
1 parent
76f2c37c76
commit
b34bf29302
1 file changed
+2
-1
@@ -298,6 +298,7 @@ public class SkyHook implements GeoPointLocationListener{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFirstFix(boolean firstFix) {
|
public void onFirstFix(boolean firstFix) {
|
||||||
mListener.onFirstFix(firstFix);
|
if(mListener != null)
|
||||||
|
mListener.onFirstFix(firstFix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user