Fixed NPE
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
0.3.1
|
||||
* Fixed crash when clicking "Create new contact" button
|
||||
|
||||
0.3 / 2014-12-01 / ebba8aac78d50eda9d25f936e8bd348553966649
|
||||
* Migrated to new Material design from Android Lollipop
|
||||
* Overhauled password usability
|
||||
|
@ -33,7 +33,7 @@ public class EditContactActivity extends ActionBarActivity {
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
|
||||
if (savedInstanceState == null) {
|
||||
EditContactFragment f = null;
|
||||
EditContactFragment f;
|
||||
Bundle args = getIntent().getExtras();
|
||||
if (args != null) {
|
||||
String destination = args.getString(EditContactFragment.NEW_DESTINATION);
|
||||
@ -44,7 +44,8 @@ public class EditContactActivity extends ActionBarActivity {
|
||||
destination = args.getString(EditContactFragment.CONTACT_DESTINATION);
|
||||
f = EditContactFragment.newInstance(destination);
|
||||
}
|
||||
}
|
||||
} else
|
||||
f = EditContactFragment.newInstance(null);
|
||||
getSupportFragmentManager().beginTransaction()
|
||||
.add(R.id.container, f).commit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user