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

Commit c3f8f2be authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "MTP: Throw a NullPointerException if client is null in MtpCursor constructor"

parents 6190ba5a 069ead3a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -50,6 +50,9 @@ public final class MtpCursor extends AbstractWindowedCursor {

    public MtpCursor(MtpClient client, int queryType, int deviceID, long storageID, long objectID,
            String[] projection) {
        if (client == null) {
            throw new NullPointerException("client null in MtpCursor constructor");
        }
        mColumns = projection;

        HashMap<String, Integer> map;