~singpolyma/cheogram-android

23eff8fedcc6283a4c785f3dac85b0c30b342229 — Stephen Paul Weber 24 days ago a8146ce
Fix NPE
1 files changed, 4 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java
M src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java => src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java +4 -1
@@ 223,7 223,10 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
        }
        final Jid accountJid = accountJid();
        final OnGatewayResult finish = (final String jidString, final String errorMessage) -> {
            getActivity().runOnUiThread(() -> {
            Activity context = getActivity();
            if (context == null) return; // Race condition, we got the reply after the UI was closed

            context.runOnUiThread(() -> {
                if (errorMessage != null) {
                    binding.jidLayout.setError(errorMessage);
                    return;