Autoplayer is null


Whenever i try debugging AutoPlayerView i get the error

"Caught exception in strategy
java.lang.NullPointerException: Cannot invoke "tetris.autoplay.AutoPlayer.getMove()" because "this.autoPlayer" is null
        at tetris.view.AutoplayerView.getNextMove(
        at tetris.view.AutoplayerView.execute(
        at tetris.view.TaskedTetrisComponent$
        at java.base/java.util.TimerThread.mainLoop(
        at java.base/"

and then it gives me game over so I’m not able to debug it.
However when i try to run it. It runs and the first Piece is placed according to the algorithm but then the other next pieces just go down on each other. What could i do to prevent autoplayer from being null while debugging ?

The autoplayer is instantiated in the constructor of the AutoplayerView by invoking MyTetrisFactory.createAutoPlayer.

You possibly forgot to implement the factory method.