Merge "Catch a rare NPE due in SuggestionController"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fa650398f7
@@ -104,6 +104,9 @@ public class SuggestionController {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return mRemoteService.getSuggestions();
|
return mRemoteService.getSuggestions();
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
Log.w(TAG, "mRemote service detached before able to query", e);
|
||||||
|
return null;
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.w(TAG, "Error when calling getSuggestion()", e);
|
Log.w(TAG, "Error when calling getSuggestion()", e);
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user