-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
The line of code below will throw a null reference exception when attempting to use the GraphicalClient instead of TextClient in student ship programs:
| cmd = (ShipCommand)shipType.getMethod("getNextCommand", Environment.class).invoke(ship, env); |
The issue appears to be that instead of assigning to the field shipType at line 75 the code instead assigns to a local variable leaving the field with a null value:
| Class<?> shipType = Class.forName(this.shipClassname); |
Metadata
Metadata
Assignees
Labels
No labels