| Summary: | Accessing index 0 of an empty array list | ||
|---|---|---|---|
| Product: | Group14-Pacman | Reporter: | Aleksa <ajelaca2-c> |
| Component: | Game | Assignee: | Aleksa <ajelaca2-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | tianxyang3-c |
| Priority: | High | ||
| Version: | 0.0.2 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
|
Description
Aleksa
2021-11-24 15:48:06 HKT
Solution: ArrayList of algs in Frightened.java is not null when retrieved to Game.java. I changed to checking condition in boolean moveGhosts() in Game.java from if(algs!=null) to if (algs.size()!=0) |