Do the opposite of what your code does. Create an image, call the set method in a loop and write it to disk
Type: Posts; User: Norm
Do the opposite of what your code does. Create an image, call the set method in a loop and write it to disk
For debugging You need to start with the first place the name is set and print it out. Then every time its value is changed, print it out. One of those print outs will show it being set to a null...
How do you know the value of name here? You do not print it out.
Cross posted at Send string(file name) to other class - Dev Shed
Where in the code is filename given a non-null value? The only way you will know if the value is not null is if you print it.
Add printlns to all the places where a value is passed and set to see...