Just to be sure, try calling some other Image method and see if that too throws a NullPointerException.
As for the width and height, even if it wasn't able to figure it out, it should still...
Type: Posts; User: javapenguin
Just to be sure, try calling some other Image method and see if that too throws a NullPointerException.
As for the width and height, even if it wasn't able to figure it out, it should still...
I meant the variable source. Perhaps you don't have it in a folder that it can access or it can't find the file.
If it can't find the file, it can't get a height or width for the image that it...
Check and see if source is null.
I'm getting a NPE at line 50, with direct cut and paste, er, after I put in the extra } to make it compile.
Somehow I'm wondering if the variable source is null.
Yep, a simple try catch found...
It appears to be:
debug( "Optimal grid is " + maxCol + " by " + maxRow );
if you copy and paste it directly into there.
Something must be null.
Either one, or both, of your two variables must be null. Why it's doing that is a mystery, as it should let you pass a null value as a param String. However, maybe you do...