The api attempts to create a main ship in API.java on line 74. If the ship is invalid (ie xCoord = -1) the factory method initShip returns null. All the other ships have a null check, however the Main Ship does not.
This causes the engine to crash since Main Ship is null (and it expects it to not be).
The api attempts to create a main ship in
API.java
on line 74. If the ship is invalid (ie xCoord = -1) the factory methodinitShip
returns null. All the other ships have a null check, however the Main Ship does not.This causes the engine to crash since Main Ship is null (and it expects it to not be).