Skip to content

Tag: tostring

Android: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String java.lang.Object.toString()’ on a null object reference

Facing a problem with a practice app I’m working on. I’m facing a NullPointerException problem relating to the toString method. Being new to android app development, I’m unsure of the exact cause even after my research into this. Hence I ask for someone who is more familiar with the stack trace to kindly help me out. Note: The error occurs