Search:

Type: Posts; User: javapenguin

Search: Search took 0.14 seconds.

  1. Replies
    13
    Views
    1,483

    [SOLVED] Re: Please Help Me With This Error!

    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...
  2. Replies
    13
    Views
    1,483

    [SOLVED] Re: Please Help Me With This Error!

    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...
  3. Replies
    13
    Views
    1,483

    [SOLVED] Re: Please Help Me With This Error!

    Check and see if source is null.
  4. Replies
    13
    Views
    1,483

    [SOLVED] Re: Please Help Me With This Error!

    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...
  5. Replies
    13
    Views
    1,483

    [SOLVED] Re: Please Help Me With This Error!

    It appears to be:

    debug( "Optimal grid is " + maxCol + " by " + maxRow );

    if you copy and paste it directly into there.
  6. Replies
    13
    Views
    1,483

    [SOLVED] Re: Please Help Me With This Error!

    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...
Results 1 to 6 of 6