From 274e7c6c4b9761a67fcae49a097e431eaae827c3 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 20 Feb 2019 10:38:27 -0800 Subject: [PATCH] fix NPE (by inspection, from crashlytics report) --- .../src/main/java/org/eehouse/android/xw4/DlgDelegate.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java index 01b69ce6e..065411560 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java @@ -455,7 +455,10 @@ public class DlgDelegate { public void setProgressMsg( int id ) { - m_progress.setMessage( getString( id ) ); + ProgressDialog progress = m_progress; + if ( null != progress ) { + progress.setMessage( getString( id ) ); + } } public void stopProgress()