Skip to content
Snippets Groups Projects
Commit 76507253 authored by Hui Wang's avatar Hui Wang Committed by Gerrit Code Review
Browse files

Merge "Return with error logs instead of exception for unexpected nsi"

parents 13df77c3 b535b50e
No related branches found
No related tags found
No related merge requests found
......@@ -153,8 +153,9 @@ public final class TelephonyScanManager {
nsi = mScanInfo.get(message.arg2);
}
if (nsi == null) {
throw new RuntimeException(
"Failed to find NetworkScanInfo with id " + message.arg2);
Rlog.e(TAG, "Unexpceted message " + message.what
+ " as there is no NetworkScanInfo with id " + message.arg2);
return;
}
final NetworkScanCallback callback = nsi.mCallback;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment