1 year ago
#73579
Sourabh Sharma
Getting the error "Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null
I have tried many ways but the error still persists. This error is shown because the location of the image is null but I think there are some more issues that causes this error
I am attaching my code where I got this error Code where I got the error
java
eclipse
swing
nullpointerexception
embedded-resource
0 Answers
Your Answer