[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f am: d944d907df am: 31737b4618
Change-Id: I780fc62bcad56b4f1518a9a84ff7a77914f5c722
This commit is contained in:
@@ -683,6 +683,8 @@ public class Binder implements IBinder {
|
|||||||
Log.w(TAG, "Caught a RuntimeException from the binder stub implementation.", e);
|
Log.w(TAG, "Caught a RuntimeException from the binder stub implementation.", e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// Clear the parcel before writing the exception
|
||||||
|
reply.setDataSize(0);
|
||||||
reply.setDataPosition(0);
|
reply.setDataPosition(0);
|
||||||
reply.writeException(e);
|
reply.writeException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user