NullPointerException error

You may benefit from using requestImage() during the setup() for this scenario.

PS: The Question Class is not in the posted code snippet provided so I couldn’t test it on my system.

Best of luck!

also FYI: