mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 07:57:30 +00:00
Fix for NPE which should never happen, but apparently does.
This commit is contained in:
parent
f4de6c8d84
commit
b4e48f9dba
@ -17,6 +17,7 @@
|
||||
package org.thoughtcrime.securesms;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
@ -59,7 +60,8 @@ public class PassphrasePromptActivity extends PassphraseActivity {
|
||||
private class OkButtonClickListener implements OnClickListener {
|
||||
public void onClick(View v) {
|
||||
try {
|
||||
String passphrase = passphraseText.getText().toString();
|
||||
Editable text = passphraseText.getText();
|
||||
String passphrase = (text == null ? "" : text.toString());
|
||||
MasterSecret masterSecret = MasterSecretUtil.getMasterSecret(PassphrasePromptActivity.this, passphrase);
|
||||
|
||||
MemoryCleaner.clean(passphrase);
|
||||
|
Loading…
x
Reference in New Issue
Block a user