How to solve the follwing error when running the program (Exception in the thread main java.lang.NullpointerException) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to solve the follwing error when running the program (Exception in the thread main java.lang.NullpointerException)

9th Jun 2018, 10:29 PM
fatima
4 Answers
+ 5
post the code
9th Jun 2018, 10:36 PM
Max
Max - avatar
+ 1
You have to make sure that you dont access to null object or pass null value to function that dont accept they
9th Jun 2018, 11:31 PM
KrOW
KrOW - avatar
0
This post may be removed if you don't post the code or explain more about what you were trying to do.
9th Jun 2018, 11:31 PM
Zeke Williams
Zeke Williams - avatar
0
thank you
9th Jun 2018, 11:58 PM
fatima