Merge "DO NOT MERGE Protect against NPE in FusionEngine.java." into jb-mr1.1-dev
This commit is contained in:
@@ -249,7 +249,11 @@ public class FusionEngine implements LocationListener {
|
||||
}
|
||||
}
|
||||
|
||||
mCallback.reportLocation(mFusedLocation);
|
||||
if (mCallback != null) {
|
||||
mCallback.reportLocation(mFusedLocation);
|
||||
} else {
|
||||
Log.w(TAG, "Location updates received while fusion engine not started");
|
||||
}
|
||||
}
|
||||
|
||||
/** Called on mLooper thread */
|
||||
|
||||
Reference in New Issue
Block a user