title: Can't decodeStream
body: <p>I want to download an image-avatar from Facebook (I have setup the Facebook SDK and authorization already). This is my code -</p>
  
  <pre><code>if (Utils.isOnline(RegisterActivity.this)) 
  {
      try 
      {
          // Download image
          image = BitmapFactory.decodeStream(imageUrl.openConnection().getInputStream());
          Log.d("Bitmap", "yes");
          // Saving images
          saveBitmapAsFile(image);
          return true;
      } 
      catch (IOException e) 
      {
          e.printStackTrace();
      }
  } 
  else 
  {
      Toast.makeText(RegisterActivity.this, R.string.offlane, Toast.LENGTH_SHORT).show();
  }
  </code></pre>
  
  <p>imageUrl - URL, - link like this:</p>
  
  <pre><code>"http://graph.facebook.com/" + facebookUserId + "/picture?type=large"
  </code></pre>
  
  <p><strong>But bitmap image after call Bitmap.decodeStream still is null, and this I catch NullPointerException. Pls - help me.</strong></p>