title: Picasso: java.lang.IllegalArgumentException: Target must not be null
body: <p>Hey Guys having  a bit of trouble with trying to put a image into the image view using picasso.</p>
  
  <p>getting the error : java.lang.IllegalArgumentException: Target must not be null on this line of code</p>
  
  <pre><code>            .into(UserProfilePhoto);
  </code></pre>
  
  <p>Here is the full code
  public class UserProfileActivity extends AppCompatActivity {
      private final AppCompatActivity activity = UserProfileActivity.this;</p>
  
  <pre><code>private int avatarSize;
  private String profilePhoto;
  
  
  @BindView(R.id.UserProfilePhoto)
  ImageView UserProfilePhoto;
  
  @BindView(R.id.UserProfileTabs)
  TabLayout UserProfileTabs;
  
  
  
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      ButterKnife.Bind(this);
      setContentView(R.layout.activity_user_profile);
  
      this.avatarSize = getResources().getDimensionPixelSize(R.dimen.user_profile_photo);
      this.profilePhoto = getString(R.string.user_profile_photo);
  
      Picasso.with(this)
              .load(profilePhoto)
              .placeholder(R.drawable.circle)
              .resize(avatarSize, avatarSize)
              .centerCrop()
              .transform(new TransformCircle())
              .into(UserProfilePhoto);
  </code></pre>
  
  <p>The imageview on the xml is the same as defined on here so i have no idea why its not working.</p>
  
  <pre><code> java.lang.RuntimeException: Unable to start activity ComponentInfo{ie.coffeepal.coffeepal/ie.coffeepal.coffeepal.activities.UserProfileActivity}: java.lang.IllegalArgumentException: Target must not be null.
                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
                                                                        at android.app.ActivityThread.-wrap12(ActivityThread.java)
                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
                                                                        at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                        at android.os.Looper.loop(Looper.java:154)
                                                                        at android.app.ActivityThread.main(ActivityThread.java:6119)
                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
                                                                     Caused by: java.lang.IllegalArgumentException: Target must not be null.
                                                                        at com.squareup.picasso.RequestCreator.into(RequestCreator.java:618)
                                                                        at com.squareup.picasso.RequestCreator.into(RequestCreator.java:601)
                                                                        at ie.coffeepal.coffeepal.activities.UserProfileActivity.onCreate(UserProfileActivity.java:49)
                                                                        at android.app.Activity.performCreate(Activity.java:6679)
                                                                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 
                                                                        at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) 
                                                                        at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                        at android.os.Looper.loop(Looper.java:154) 
                                                                        at android.app.ActivityThread.main(ActivityThread.java:6119) 
                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 
  </code></pre>