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

Commit b085deec authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Parcel: Avoid NPE in finalization"

parents 0c614c70 009b8521
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -737,7 +737,9 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
    private void closeWithStatus(int status, String msg) {
        if (mClosed) return;
        mClosed = true;
        if (mGuard != null) {
            mGuard.close();
        }
        // Status MUST be sent before closing actual descriptor
        writeCommStatusAndClose(status, msg);
        IoUtils.closeQuietly(mFd);