@Override public void handleEvent(MotionFrameEvent event) { if(event == null){ return; }else if(event.getMotionFrame() == null){ return; } RobotPositionMap goals = event.getMotionFrame().getGoalPositions(); long duration = event.getMotionFrame().getFrameLengthMillisec(); if(goals == null){ return; } move(goals, duration); } }