Merge "Catch a rare NPE due in SuggestionController"

This commit is contained in:
TreeHugger Robot
2017-12-05 21:40:04 +00:00
committed by Android (Google) Code Review

View File

@@ -104,6 +104,9 @@ public class SuggestionController {
}
try {
return mRemoteService.getSuggestions();
} catch (NullPointerException e) {
Log.w(TAG, "mRemote service detached before able to query", e);
return null;
} catch (RemoteException e) {
Log.w(TAG, "Error when calling getSuggestion()", e);
return null;