We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3377b40 + 939caef commit 983faeeCopy full SHA for 983faee
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