What is causing the NullPointerException? What variable or value is null?
The code shows that the fileName variable being passed to the getResource() method.
Your statement does not make sense....
Type: Posts; User: Norm
What is causing the NullPointerException? What variable or value is null?
The code shows that the fileName variable being passed to the getResource() method.
Your statement does not make sense....
Look at the code at line 18.
Does the getResource method return a null?
Does the file referenced in the fileName variable exist?