Loading core/java/android/net/WifiKey.java +2 −2 Original line number Diff line number Diff line Loading @@ -64,10 +64,10 @@ public class WifiKey implements Parcelable { * @throws IllegalArgumentException if either the SSID or BSSID is invalid. */ public WifiKey(String ssid, String bssid) { if (!SSID_PATTERN.matcher(ssid).matches()) { if (ssid == null || !SSID_PATTERN.matcher(ssid).matches()) { throw new IllegalArgumentException("Invalid ssid: " + ssid); } if (!BSSID_PATTERN.matcher(bssid).matches()) { if (bssid == null || !BSSID_PATTERN.matcher(bssid).matches()) { throw new IllegalArgumentException("Invalid bssid: " + bssid); } this.ssid = ssid; Loading Loading
core/java/android/net/WifiKey.java +2 −2 Original line number Diff line number Diff line Loading @@ -64,10 +64,10 @@ public class WifiKey implements Parcelable { * @throws IllegalArgumentException if either the SSID or BSSID is invalid. */ public WifiKey(String ssid, String bssid) { if (!SSID_PATTERN.matcher(ssid).matches()) { if (ssid == null || !SSID_PATTERN.matcher(ssid).matches()) { throw new IllegalArgumentException("Invalid ssid: " + ssid); } if (!BSSID_PATTERN.matcher(bssid).matches()) { if (bssid == null || !BSSID_PATTERN.matcher(bssid).matches()) { throw new IllegalArgumentException("Invalid bssid: " + bssid); } this.ssid = ssid; Loading