Java-Snake-Game icon indicating copy to clipboard operation
Java-Snake-Game copied to clipboard

Null Timer causes NullPointerException when repaint() is called

Open leosenpaihh opened this issue 1 month ago • 0 comments

If the internal game timer is null, calling repaint() results in a NullPointerException. This indicates that the game loop assumes the Timer is always initialized, leading to instability when the Timer is missing or has been stopped incorrectly.

leosenpaihh avatar Dec 08 '25 12:12 leosenpaihh