From e1378e91abd2acfbf565545b8b0a6fcf9fabea79 Mon Sep 17 00:00:00 2001 From: eehouse Date: Tue, 20 Apr 2010 13:31:08 +0000 Subject: [PATCH] test for null ptr when firing runnable not when creating it --- .../src/org/eehouse/android/xw4/BoardActivity.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java index 895c17d47..67856a8db 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java @@ -506,13 +506,13 @@ public class BoardActivity extends Activity implements UtilCtxt { public void requestTime() { - if ( null != m_jniThread ) { - m_handler.post( new Runnable() { - public void run() { + m_handler.post( new Runnable() { + public void run() { + if ( null != m_jniThread ) { m_jniThread.handle( JNIThread.JNICmd.CMD_DO ); } - } ); - } + } + } ); } public void remSelected()