title: Parse File Query Not Working
body: <p>I am attempting to get a file from Parse through a query. Parse is very vague on how to get files from the cloud, but I have managed to create a basic query to attempt to get a file</p>
  
  <pre><code>ParseQuery query = ParseUser.getQuery();
                      query.getInBackground(objects.get(i).getObjectId(), new GetCallback&lt;ParseObject&gt;() {
  
                          public void done(ParseObject object, ParseException e) {
  
                              ParseFile fileObject = (ParseFile) object.get("picture");
                              fileObject.getDataInBackground(new GetDataCallback() {
  
                                  public void done(byte[] data, ParseException e) {
                                      if (e == null) {
                                          Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length);
  
                                          ImageView image = (ImageView) findViewById(R.id.profilePicture);
  
                                          image.setImageBitmap(bmp);
  
                                      } else {
                                          Toast.makeText(getApplicationContext(), "Image Not Found", Toast.LENGTH_SHORT).show();
                                      }
                                  }
                              });
                          }
                      });
  </code></pre>
  
  <p>The code above gives me a <code>NullPointerException</code> on the line:    </p>
  
  <pre><code>ParseFile fileObject = (ParseFile) object.get("picture");
  </code></pre>
  
  <p>Need help getting the file through this method. Or is there an easier way to get a file from the Parse Cloud? All help is appreciated.</p>