mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 17:02:21 -05:00
ConversationActivity: onPause(): Prevent null pointer exception
This commit is contained in:
parent
4072ee6c5f
commit
c7d891e917
@ -169,7 +169,9 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
{
|
||||
super.onPause();
|
||||
|
||||
binder.getService().checkServiceStatus();
|
||||
if (binder != null && binder.getService() != null) {
|
||||
binder.getService().checkServiceStatus();
|
||||
}
|
||||
|
||||
/*if (!binder.getService().hasConnections()) {
|
||||
Log.d("Yaaic", "Stopping service");
|
||||
|
Loading…
Reference in New Issue
Block a user