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...
Type: Posts; User: Zaphod_b
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...
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...