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

This commit is contained in:
Mike Lockwood
2010-10-08 13:12:39 -07:00
committed by Android (Google) Code Review

View File

@@ -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;