Skip to content

Commit 6ae5a8a

Browse files
Avoid throwing an error if an active network connection could not be found.
1 parent 7541b7b commit 6ae5a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protect/src/main/java/com/webileapps/safeguard/SecurityChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ public SecurityCheck checkNetworkSecurity() {
497497
NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network);
498498

499499
if (capabilities == null) {
500-
return createNetworkSecurityResponse("No active network connection");
500+
return new SecurityCheck.Success();
501501
} else if (NetworkUtils.isVPNActive(context)) {
502502
return createNetworkSecurityResponse(context.getString(R.string.vpn_warning));
503503
} else if (NetworkUtils.isProxySet(context)) {

0 commit comments

Comments
 (0)