Merge "fix null pointer crash" into mnc-dev

This commit is contained in:
Vinit Deshpande
2015-05-14 03:39:45 +00:00
committed by Android (Google) Code Review

View File

@@ -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;