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

Commit 624f00b4 authored by William Escande's avatar William Escande
Browse files

OppTransfer Add null check for mTransferCursor.

Bug: 328847200
Flag: Exempt trivial
Test: None
Change-Id: I62e89c15e3062effc7cc659f59c8ed029f08d36e
parent 9d9867d4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -266,6 +266,9 @@ public class BluetoothOppTransferHistory extends Activity

    /** Returns true if the device has finished transfers, including error and success. */
    private boolean isTransferComplete() {
        if (mTransferCursor == null) {
            return false;
        }
        try {
            if (mTransferCursor.moveToFirst()) {
                while (!mTransferCursor.isAfterLast()) {