Merge pull request #1327 from adithyaphilip/fix-null

Prevent NullPointerException due to Activity death
This commit is contained in:
Dominik Schürmann 2015-06-08 09:55:13 +02:00
commit 69c8ecd553
1 changed files with 3 additions and 3 deletions

View File

@ -263,7 +263,7 @@ public class ImportKeysActivity extends BaseNfcActivity {
// However, if we're being restored from a previous state,
// then we don't need to do anything and should return or else
// we could end up with overlapping fragments.
if (savedInstanceState != null) {
if (mListFragment != null) {
return;
}
@ -283,7 +283,7 @@ public class ImportKeysActivity extends BaseNfcActivity {
// However, if we're being restored from a previous state,
// then we don't need to do anything and should return or else
// we could end up with overlapping fragments.
if (savedInstanceState != null) {
if (mTopFragment != null) {
return;
}
@ -314,7 +314,7 @@ public class ImportKeysActivity extends BaseNfcActivity {
// However, if we're being restored from a previous state,
// then we don't need to do anything and should return or else
// we could end up with overlapping fragments.
if (savedInstanceState != null) {
if (mTopFragment != null) {
return;
}