Fix crash reported on Play Store

This commit is contained in:
Synced Synapse 2015-12-02 19:39:18 +00:00
parent d8435ae161
commit eb61844a8e
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ public class RemoteActivity extends BaseActivity
@Override
public void onPause() {
super.onPause();
hostConnectionObserver.unregisterPlayerObserver(this);
if (hostConnectionObserver != null) hostConnectionObserver.unregisterPlayerObserver(this);
hostConnectionObserver = null;
}