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

Commit 069ead3a authored by Mike Lockwood's avatar Mike Lockwood
Browse files

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



Change-Id: Ia2a19ddcc5cacb54d9fcbe55bce1de1aed515424
Signed-off-by: default avatarMike Lockwood <lockwood@google.com>
parent e7aa0785
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;