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

Commit 56381b54 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Clear reply before writing exception."

parents 3766a7a2 7f97e65a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -337,13 +337,16 @@ public class Binder implements IBinder {
        try {
            res = onTransact(code, data, reply, flags);
        } catch (RemoteException e) {
            reply.setDataPosition(0);
            reply.writeException(e);
            res = true;
        } catch (RuntimeException e) {
            reply.setDataPosition(0);
            reply.writeException(e);
            res = true;
        } catch (OutOfMemoryError e) {
            RuntimeException re = new RuntimeException("Out of memory", e);
            reply.setDataPosition(0);
            reply.writeException(re);
            res = true;
        }