Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d69d2599 authored by Hall Liu's avatar Hall Liu
Browse files

Stop silently dropping a NullPointerException

In TelephonyManager, if we get a NullPointerException, don't just
silently drop it.

Bug: 130287372
Test: manual
Change-Id: Ic85512577f67edd25b0fa808ff3280201c851383
parent e5cf7432
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -8236,9 +8236,8 @@ public class TelephonyManager {
            ITelephony telephony = getITelephony();
            if (telephony != null)
                retVal = telephony.isUserDataEnabled(subId);
        } catch (RemoteException e) {
        } catch (RemoteException | NullPointerException e) {
            Log.e(TAG, "Error calling ITelephony#isUserDataEnabled", e);
        } catch (NullPointerException e) {
        }
        return retVal;
    }