Skip to content

Commit

Permalink
avoid NPE seen on sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed Dec 12, 2024
1 parent 87e964d commit f5e5d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/archos/mediaprovider/video/RemoteStateService.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public void run() {
mUpnpId.put(server,new Pair<>(id, active));
}
}
if(mUpnpId.size()>0&&hasLocalConnection){
if(mUpnpId != null && !mUpnpId.isEmpty() &&hasLocalConnection){
if(!mUpnpDiscoveryStarted) {
//we start upnp discovery but we don't want to add the listener twice
UpnpServiceManager.startServiceIfNeeded(context).addListener(this);
Expand Down

0 comments on commit f5e5d57

Please sign in to comment.