Update ConnectedToRailwayDeviceEvent.java

fixed not initialized error