Merge "Return with error logs instead of exception for unexpected nsi"
This commit is contained in:
@@ -153,8 +153,9 @@ public final class TelephonyScanManager {
|
|||||||
nsi = mScanInfo.get(message.arg2);
|
nsi = mScanInfo.get(message.arg2);
|
||||||
}
|
}
|
||||||
if (nsi == null) {
|
if (nsi == null) {
|
||||||
throw new RuntimeException(
|
Rlog.e(TAG, "Unexpceted message " + message.what
|
||||||
"Failed to find NetworkScanInfo with id " + message.arg2);
|
+ " as there is no NetworkScanInfo with id " + message.arg2);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final NetworkScanCallback callback = nsi.mCallback;
|
final NetworkScanCallback callback = nsi.mCallback;
|
||||||
|
|||||||
Reference in New Issue
Block a user