Insight: prevent NPE

This commit is contained in:
Milos Kozak 2022-08-01 21:10:25 +02:00
parent 495a006632
commit dfbe0ba0e6

View file

@ -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) {