From fb91ba86087d8211d017f14fe2a196bb02909c46 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 12 Jul 2017 08:14:42 -0700 Subject: [PATCH] fix (by inspection) store-reported NPE --- .../app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java index d59192a4f..176f6d7cc 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java @@ -324,7 +324,8 @@ public class BoardCanvas extends Canvas implements DrawCtx { public void drawTimer( Rect rect, int player, int secondsLeft ) { - if ( (m_lastSecsLeft != secondsLeft || m_lastTimerPlayer != player) ) { + if ( null != m_jniThread && + (m_lastSecsLeft != secondsLeft || m_lastTimerPlayer != player) ) { m_lastSecsLeft = secondsLeft; m_lastTimerPlayer = player;