Added null check for mListener in SkyHook.java

closes #66

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-05-22 15:49:58 -04:00
parent 76f2c37c76
commit b34bf29302

View File

@@ -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);
} }
} }