Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    12
    Views
    1,451

    Re: Problem with Java Classes, in an applet

    Primitive variables can not have null values. boolean is a primitive.
    reference variables can have null values and that will cause the exception.

    Add some printlns to print out the values of all...
  2. Replies
    12
    Views
    1,451

    Re: Problem with Java Classes, in an applet

    Yes, that is a lot easier to read and understand.
    Have you found the null variable and then found out why it doesn't not have a valid value?
  3. Replies
    12
    Views
    1,451

    Re: Problem with Java Classes, in an applet

    Please edit your post, select the code and wrap it with code tags.
    See:BB Code List - Java Programming Forums
    Or press the Go Advanced and use the #icon
  4. Replies
    12
    Views
    1,451

    Re: Problem with Java Classes, in an applet

    If you are getting a NullPointerException you need to track down why the variable does not have a valid value.
  5. Replies
    12
    Views
    1,451

    Re: Problem with Java Classes, in an applet

    Please explain why you think there is a problem. Do you see an error message or bad output or what?
  6. Replies
    12
    Views
    1,451

    Re: Problem with Java Classes, in an applet

    At line 36 in MiniMajorProject there is a variable with a null value. Look at that line of code and see what variable is there that is null and then backtrack in your code to see why that variable...
  7. Replies
    12
    Views
    1,451

    Re: Problem with Java Classes, in an applet

    Please copy and paste here the full text of the error message.
Results 1 to 7 of 7