diff --git a/Source/Examples/Tests/InputLogger.cs b/Source/Examples/Tests/InputLogger.cs index 8ce66f9c..0c0fa641 100644 --- a/Source/Examples/Tests/InputLogger.cs +++ b/Source/Examples/Tests/InputLogger.cs @@ -123,7 +123,8 @@ namespace Examples.Tests this.BeginInvoke(ControlLogJoystickButtonUp, this, sender, args); }; } - comboBoxActiveJoystick.SelectedIndex = 0; + if (comboBoxActiveJoystick.Items.Count > 0) + comboBoxActiveJoystick.SelectedIndex = 0; #endregion }