mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
fix NPE
This commit is contained in:
parent
08205637de
commit
c42271ee31
1 changed files with 8 additions and 2 deletions
|
@ -224,8 +224,14 @@ public class SMSService extends XWService {
|
|||
@Override
|
||||
public void onDestroy()
|
||||
{
|
||||
unregisterReceiver( m_sentReceiver );
|
||||
unregisterReceiver( m_receiveReceiver );
|
||||
if ( null != m_sentReceiver ) {
|
||||
unregisterReceiver( m_sentReceiver );
|
||||
m_sentReceiver = null;
|
||||
}
|
||||
if ( null != m_receiveReceiver ) {
|
||||
unregisterReceiver( m_receiveReceiver );
|
||||
m_receiveReceiver = null;
|
||||
}
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue