Fix nullpointer in first time activity

This commit is contained in:
Dominik Schürmann 2014-08-20 20:44:49 +02:00
parent ccc1d2e006
commit 937c91eefa

View File

@ -92,7 +92,9 @@ public class FirstTimeActivity extends ActionBarActivity {
prefs.setFirstTime(false); prefs.setFirstTime(false);
Intent intent = new Intent(this, KeyListActivity.class); Intent intent = new Intent(this, KeyListActivity.class);
// give intent through to display notify // give intent through to display notify
intent.putExtras(srcData); if (srcData != null) {
intent.putExtras(srcData);
}
startActivityForResult(intent, 0); startActivityForResult(intent, 0);
finish(); finish();
} }