Change-Id: Iec8df7b668a4657677f9c5421d00aa1b7df91015
Log.d(TAG, "startLoader isLaunching=" + isLaunching);
}
// Don't bother to start the thread if we know it's not going to do anything
- if (mCallbacks.get() != null) {
+ if (mCallbacks != null && mCallbacks.get() != null) {
LoaderThread oldThread = mLoaderThread;
if (oldThread != null) {
if (oldThread.isLaunching()) {
return null;
}
+ if (mCallbacks == null) {
+ return null;
+ }
+
final Callbacks callbacks = mCallbacks.get();
if (callbacks != oldCallbacks) {
return null;