catch off-thrown exception. This should prevent a crash, but the fix is probably to figure out why it's happening -- later.

This commit is contained in:
Eric House 2014-03-08 12:55:46 -08:00
parent 23b72467bb
commit e0c17c50b3

View file

@ -2045,14 +2045,17 @@ public class BoardActivity extends XWActivity
try { try {
m_forResultWait.acquire(); m_forResultWait.acquire();
m_blockingDlgID = BLOCKING_DLG_NONE;
} catch ( java.lang.InterruptedException ie ) { } catch ( java.lang.InterruptedException ie ) {
DbgUtils.loge( ie ); DbgUtils.loge( ie );
if ( BLOCKING_DLG_NONE != m_blockingDlgID ) { if ( BLOCKING_DLG_NONE != m_blockingDlgID ) {
dismissDialog( m_blockingDlgID ); try {
m_blockingDlgID = BLOCKING_DLG_NONE; dismissDialog( m_blockingDlgID );
} catch ( java.lang.IllegalArgumentException iae ) {
DbgUtils.loge( iae );
}
} }
} }
m_blockingDlgID = BLOCKING_DLG_NONE;
} }
clearBlockingThread(); clearBlockingThread();