0

Any idea about this run time error. App crash with this error

java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Bitmap android.graphics.drawable.BitmapDrawable.getBitmap()' on a null object reference at infrmrapp.com.infrmr.data.ArticleAdapter.onBindViewHolder(ArticleAdapter.java:60) at .com.infrmr.data.ArticleAdapter.onBindViewHolder(ArticleAdapter.java:29) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6482) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java

23rd Nov 2017, 10:14 PM
HighFlyer
HighFlyer - avatar
1 Answer
+ 3
The error is basically saying that you're trying to use the getBitmap method on something that doesn't exist.
23rd Nov 2017, 11:50 PM
Hassie
Hassie - avatar