Merge "fix null pointer crash" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a3b9a2240e
@@ -1057,7 +1057,7 @@ public class WifiManager {
|
||||
}
|
||||
synchronized(this) {
|
||||
record = mService.reportActivityInfo();
|
||||
if (record.isValid()) {
|
||||
if (record != null && record.isValid()) {
|
||||
return record;
|
||||
} else {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user