ImageView - null object reference : <p>I'm building a <code>reyclerView</code> that loads images into the titleChild. I uploaded <code>test_image</code> into res/drawable but I keep seeing null object reference at</p>

<pre><code>titleChildViewHolder.option1.setImageResource(R.drawable.test_image);
titleChildViewHolder.option2.setImageResource(R.drawable.test_image);
</code></pre>

<p><a href="https://i.stack.imgur.com/w54gJ.jpg" rel="nofollow noreferrer">enter image description here</a></p>
