fix (by inspection) store-reported NPE

This commit is contained in:
Eric House 2017-07-12 08:14:42 -07:00
parent 4f989c7a3e
commit fb91ba8608

View file

@ -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;