Skip to content

Instantly share code, notes, and snippets.

@konk3r
Created April 28, 2015 18:01
Show Gist options
  • Save konk3r/56b9f8e7448e76e7f969 to your computer and use it in GitHub Desktop.
Save konk3r/56b9f8e7448e76e7f969 to your computer and use it in GitHub Desktop.
public ScrollableShareView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
inflate(context, R.layout.widget_scrollable_share, this);
ButterKnife.inject(this);
callMethodThatCausesNullPointerException(); // This is the method that actually causes the issue, and I want the line number for the null pointer exception to this to show up in logcat
}
public SharePhotoView(Context context, AttributeSet attrs, int defStyle)
inflate(context, R.layout.widget_share_photo, this); //Inside of THIS inflation, I am inflating a ScrollableShareView
ButterKnife.inject(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment