| Summary: | NullPointerException error message of UIPainting class when running the Main.java | ||
|---|---|---|---|
| Product: | CS3343 2021/22 Group16 Greedy Snake | Reporter: | WANG Yiwen <ywang2528-c> |
| Component: | System section | Assignee: | Baron Qu <zhiyanqu2-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | ruoxinli3-c |
| Priority: | --- | ||
| Version: | Ver 3.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
|
Description
WANG Yiwen
2021-12-06 17:50:49 HKT
The bug is due to we added another constructor in the UIPainting class and deleted the initialization of the game field. We now added it back. The code implementation: private Game game=new Game();//add the initialization back |