title: NullPointer trying to Export Google Doc
body: <p>Using the Google Drive SDK (v2-rev57-1.13.2-beta) from Google, I am attempting to Export Google's proprietary formats.I am able to download non-proprietary formats just fine. </p>
  
  <p>To get the path for the file, the <a href="https://developers.google.com/drive/manage-downloads#downloading_google_documents" rel="nofollow">documentation</a> says to call:</p>
  
  <pre><code>com.google.api.services.drive.model.File.getExportLinks("application/vnd.openxmlformats-officedocument.wordprocessingml.document") 
  </code></pre>
  
  <p>to export (for example) a Google Document as a MS Word document. Doing this results in an apparently valid URL. (I've also tried this with "text/plain", with the same result).</p>
  
  <p>However, when I attempt to download from that path, The Google Drive SDK throws a NullPointerException internally:</p>
  
  <pre><code>java.lang.NullPointerException
  at com.google.api.client.googleapis.media.MediaHttpDownloader.download(MediaHttpDownloader.java:194)
  at com.google.api.client.googleapis.media.MediaHttpDownloader.download(MediaHttpDownloader.java:150)
  at com.redacted.mycode.GoogleDocsConnection.download(GoogleDocsConnection.java:182)
  ...
  </code></pre>
  
  <p>Is anybody else experiencing this? I'm considering modifying Google's SDK myself, but I wanted to see if anyone has already run into this problem (and maybe found a solution).</p>
  
  <p>Thanks</p>