Bug 431

Summary: java.lang.NullPointerException was thrown when the pieces fill the playing field.
Product: Group16_Tetris Fighter Reporter: Ashley <tecchk.cy>
Component: GameControllerAssignee: Ashley <tecchk.cy>
Status: RESOLVED INVALID    
Severity: critical CC: lfeng23-c
Priority: High    
Version: V1   
Hardware: All   
OS: All   

Description Ashley 2020-11-22 15:27:52 HKT
java.lang.NullPointerException was thrown when the pieces fill the playing field.
And the "game over" page will not be shown as expected.

The exception was caused by the wrong logic.

To solve this exception, we swap the following two lines of code.

this.logicTimer = new Clock(gameSpeed);
pc = new PieceController(this);