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

Commit 32e0755a authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

If we finish before the the remotePrintedDocument is initialized

... we should not check if it is updating. As it is not initailized,
we do not have to check either, hence we can just ignore this.

Bug: 27516795
Change-Id: If618f2a10563e83074e38f0b37342a648d54202a
parent 02a465ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2029,7 +2029,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
    }

    private void doFinish() {
        if (mPrintedDocument.isUpdating()) {
        if (mPrintedDocument != null && mPrintedDocument.isUpdating()) {
            // The printedDocument will call doFinish() when the current command finishes
            return;
        }