Insight: prevent NPE
This commit is contained in:
parent
495a006632
commit
dfbe0ba0e6
|
@ -209,7 +209,7 @@ public class InsightConnectionService extends DaggerService implements Connectio
|
|||
}
|
||||
|
||||
public synchronized boolean isPaired() {
|
||||
return pairingDataStorage.isPaired();
|
||||
return pairingDataStorage != null && pairingDataStorage.isPaired();
|
||||
}
|
||||
|
||||
public synchronized <T extends AppLayerMessage> MessageRequest<T> requestMessage(T message) {
|
||||
|
|
Loading…
Reference in a new issue