We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a30d969 commit 939caefCopy full SHA for 939caef
1 file changed
wifi/java/android/net/wifi/WifiManager.java
@@ -1983,7 +1983,9 @@ public void captivePortalCheckComplete() {
1983
1984
protected void finalize() throws Throwable {
1985
try {
1986
- mHandler.getLooper().quit();
+ if (mHandler != null && mHandler.getLooper() != null) {
1987
+ mHandler.getLooper().quit();
1988
+ }
1989
} finally {
1990
super.finalize();
1991
}
0 commit comments