Merge "Stop silently dropping a NullPointerException"

This commit is contained in:
Hall Liu
2019-05-24 18:27:44 +00:00
committed by Gerrit Code Review

View File

@@ -8245,9 +8245,8 @@ public class TelephonyManager {
ITelephony telephony = getITelephony(); ITelephony telephony = getITelephony();
if (telephony != null) if (telephony != null)
retVal = telephony.isUserDataEnabled(subId); retVal = telephony.isUserDataEnabled(subId);
} catch (RemoteException e) { } catch (RemoteException | NullPointerException e) {
Log.e(TAG, "Error calling ITelephony#isUserDataEnabled", e); Log.e(TAG, "Error calling ITelephony#isUserDataEnabled", e);
} catch (NullPointerException e) {
} }
return retVal; return retVal;
} }