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