fix a null reference exception
This commit is contained in:
@@ -24,6 +24,9 @@ namespace OpenRA
|
|||||||
public static bool TryParse(string s, out Hotkey result)
|
public static bool TryParse(string s, out Hotkey result)
|
||||||
{
|
{
|
||||||
result = Invalid;
|
result = Invalid;
|
||||||
|
if (string.IsNullOrWhiteSpace(s))
|
||||||
|
return false;
|
||||||
|
|
||||||
var parts = s.Split(' ');
|
var parts = s.Split(' ');
|
||||||
|
|
||||||
Keycode key;
|
Keycode key;
|
||||||
|
|||||||
Reference in New Issue
Block a user