Fix a null pointer exception reported by a user

This commit is contained in:
Cameron Gutman 2016-01-30 04:55:17 -05:00
parent edb286f9af
commit 1cac7660b8

View File

@ -233,8 +233,10 @@ public class ComputerManagerService extends Service {
@Override
public boolean onUnbind(Intent intent) {
// Stop mDNS autodiscovery
discoveryBinder.stopDiscovery();
if (discoveryBinder != null) {
// Stop mDNS autodiscovery
discoveryBinder.stopDiscovery();
}
// Stop polling
pollingActive = false;