Merge "Catch ArrayIndexOutOfBoundsException in StateMachine.toString()" into qt-dev