Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.10 seconds.

  1. Re: Not sure what is wrong with this code?? Please help

    If that is the only place in the code where the sprite can be given a non-null value, and the NPE is generated because sprite has a null value when it is used, then I think you have found the reason...
  2. Re: Not sure what is wrong with this code?? Please help

    In bucky2 class you have a field named sprite, right? Where sprite is declared, it is a reference variable that is automatically given a null value, right?

    Well...

    Where is the sprite...
Results 1 to 2 of 2