fixed npe when calling changepassword activity directly
This commit is contained in:
parent
16eb1bfbd0
commit
fb41a4ffaa
|
@ -86,8 +86,10 @@ public class ChangePasswordActivity extends XmppActivity implements XmppConnecti
|
||||||
protected void onStart() {
|
protected void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
String password = intent != null ? intent.getStringExtra("password") : "";
|
String password = intent != null ? intent.getStringExtra("password") : null;
|
||||||
this.mNewPassword.getEditableText().append(password);
|
if (password != null) {
|
||||||
|
this.mNewPassword.getEditableText().append(password);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue