enhance logging and fix Null pointer exception at wifi Null

This commit is contained in:
heyethereum
2024-08-12 00:51:35 +08:00
parent 3b2533bb62
commit a71cbd3093
5 changed files with 18 additions and 11 deletions

View File

@@ -60,6 +60,11 @@ public class WifiVerificationService {
}
public String getClassification(String encryptionType) {
// Check if encryptionType is null
if (encryptionType == null) {
return CLASSIFY_UNSAFE;
}
if (encryptionType.equalsIgnoreCase("WPA") ||
encryptionType.equalsIgnoreCase("WPA2") ||
encryptionType.equalsIgnoreCase("WPA3")) {