Skip to content

Drive.Files.Get getMediaHttpDownloader() returns null #906

@GoogleCodeExporter

Description

@GoogleCodeExporter
Version of google-api-java-client (e.g. 1.15.0-rc)?
1.17.0-rc and 1.18.0-rc


Java environment (e.g. Java 6, Android 2.3, App Engine)?
Java 7 with App Engine SDK 1.9.10


Describe the problem.
Following the example for the Resumable Media Download:
Drive.Files.Get request = drive.files().get(fileId);
request.getMediaHttpDownloader().setProgressListener(new 
CustomProgressListener());
request.executeMediaAndDownloadTo(out);

I get a NPE because request.getMediaHttpDownloader() returns null.

How would you expect it to be fixed?
There is a protected method initializeMediaDownload() under 
AbstractGoogleClientRequest that should be called perhaps?

I was looking into the Remote class under Drive and when get(String fileId) is 
called the Get constructor is calling initializeMediaDownload().

Original issue reported on code.google.com by bogdan.b...@appsbroker.com on 30 Sep 2014 at 10:50

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions