mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +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
|
@Override
|
||||||
public void onDestroy()
|
public void onDestroy()
|
||||||
{
|
{
|
||||||
unregisterReceiver( m_sentReceiver );
|
if ( null != m_sentReceiver ) {
|
||||||
unregisterReceiver( m_receiveReceiver );
|
unregisterReceiver( m_sentReceiver );
|
||||||
|
m_sentReceiver = null;
|
||||||
|
}
|
||||||
|
if ( null != m_receiveReceiver ) {
|
||||||
|
unregisterReceiver( m_receiveReceiver );
|
||||||
|
m_receiveReceiver = null;
|
||||||
|
}
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue