Getting this error

My code:-


Did you try anything from yourself?
Oh you know what null object means?

Null means nothing empty

So what do you think is empty/not initialized in your code?

1 Like

you did not provide your context variable the context from componentcontainer

1 Like

and another thing you are trying to use imageresource which is not possible so i prefer you to use bitmap or drawable instead

1 Like