ReflectionsProjections / mm19

Mechmania 19
0 stars 1 forks source link

No Null Check for Main Ship in API.java #78

Open jtfairbank opened 11 years ago

jtfairbank commented 11 years ago

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).

ace-n commented 11 years ago

Is this issue still relevant, or can we close it? (It doesn't look like it is to me.)