Fixes NPE in DriverStation initialization (#694)

Introduced by #626.
This commit is contained in:
Thad House
2017-10-27 23:16:42 -07:00
committed by Peter Johnson
parent 21585f70a8
commit efc7770e9b

View File

@@ -132,8 +132,8 @@ public class DriverStation implements RobotState.Interface {
m_joystickAxesCache[i] = new HALJoystickAxes(HAL.kMaxJoystickAxes);
m_joystickPOVsCache[i] = new HALJoystickPOVs(HAL.kMaxJoystickPOVs);
m_joystickButtonsPressed[i].m_buttons = 0;
m_joystickButtonsReleased[i].m_buttons = 0;
m_joystickButtonsPressed[i] = new HALJoystickButtons();
m_joystickButtonsReleased[i] = new HALJoystickButtons();
}
m_controlWordMutex = new Object();