diff options
author | Arne Schwabe <arne@rfc2549.org> | 2024-07-23 14:18:13 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2024-07-23 15:02:45 +0200 |
commit | 879ed38be52fbc1d7079ced9c31756c7635a1fa1 (patch) | |
tree | 6f828931a371cf8846b36217aeec117542dd6479 /main/src | |
parent | 5bdac9a6be1716738bd90816247fd52672a16568 (diff) |
Small coverity fixes
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java index 6f20d414..a1411b5e 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java +++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java @@ -309,7 +309,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac nbuilder.setOngoing(true); nbuilder.setSmallIcon(icon); - if (status == LEVEL_WAITING_FOR_USER_INPUT) { + if (status == LEVEL_WAITING_FOR_USER_INPUT && intent != null) { PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_IMMUTABLE); nbuilder.setContentIntent(pIntent); } else { |