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

Commit ed829b59 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Return NPE instead of ISE if page is closed."

parents 8f0d61e3 f3f7cccc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -374,7 +374,9 @@ public final class PdfRenderer implements AutoCloseable {
         */
        public void render(@NonNull Bitmap destination, @Nullable Rect destClip,
                           @Nullable Matrix transform, @RenderMode int renderMode) {
            throwIfClosed();
            if (mNativePage == 0) {
                throw new NullPointerException();
            }

            destination = Preconditions.checkNotNull(destination, "bitmap null");