Fix race crash

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java 🔗

@@ -1039,7 +1039,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
         AlertDialog.Builder builder = new AlertDialog.Builder(this);
         final ColorPickerView picker = new ColorPickerView(this);
 
-        picker.setColor(mAccount.getColor(isDarkTheme()));
+        if (mAccount != null) picker.setColor(mAccount.getColor(isDarkTheme()));
         picker.showAlpha(true);
         picker.showHex(true);
         picker.showPreview(true);