Commit 54278b77 authored by Ludovic Fauvet's avatar Ludovic Fauvet

MainActivity: don't crash during onDestroy

If for any reason we don't reach the end of the onCreate() the
thumbnailer may not be instantiated.
parent bc5b49e1
...@@ -342,8 +342,8 @@ public class MainActivity extends SherlockFragmentActivity { ...@@ -342,8 +342,8 @@ public class MainActivity extends SherlockFragmentActivity {
try { try {
unregisterReceiver(messageReceiver); unregisterReceiver(messageReceiver);
} catch (IllegalArgumentException e) {} } catch (IllegalArgumentException e) {}
mThumbnailerManager.clearJobs(); if (mThumbnailerManager != null)
super.onDestroy(); mThumbnailerManager.clearJobs();
} }
@Override @Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment