mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
check for null before calling method on object, fixing one NPE seen
and another expected.
This commit is contained in:
parent
4d3bab67bb
commit
9f48c4f99b
1 changed files with 10 additions and 6 deletions
|
@ -311,7 +311,9 @@ public class BoardActivity extends Activity implements UtilCtxt {
|
|||
m_firingPrefs = false;
|
||||
m_view.prefsChanged();
|
||||
m_volKeysZoom = CommonPrefs.getVolKeysZoom();
|
||||
m_jniThread.handle( JNIThread.JNICmd.CMD_PREFS_CHANGE );
|
||||
if ( null != m_jniThread ) {
|
||||
m_jniThread.handle( JNIThread.JNICmd.CMD_PREFS_CHANGE );
|
||||
}
|
||||
}
|
||||
m_view.setUseZoomControl( !m_volKeysZoom );
|
||||
}
|
||||
|
@ -502,11 +504,13 @@ public class BoardActivity extends Activity implements UtilCtxt {
|
|||
|
||||
public void requestTime()
|
||||
{
|
||||
m_handler.post( new Runnable() {
|
||||
public void run() {
|
||||
m_jniThread.handle( JNIThread.JNICmd.CMD_DO );
|
||||
}
|
||||
} );
|
||||
if ( null != m_jniThread ) {
|
||||
m_handler.post( new Runnable() {
|
||||
public void run() {
|
||||
m_jniThread.handle( JNIThread.JNICmd.CMD_DO );
|
||||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
public void remSelected()
|
||||
|
|
Loading…
Add table
Reference in a new issue