Fix null exception

This commit is contained in:
Jaex 2015-12-23 00:21:19 +02:00
parent 0be9b2311a
commit a5b785d69b

View file

@ -108,6 +108,8 @@ public Dictionary<string, string> GetArguments(string input = null)
{
Dictionary<string, string> arguments = new Dictionary<string, string>();
if (Arguments != null)
{
foreach (KeyValuePair<string, string> arg in Arguments)
{
string value = arg.Value;
@ -118,6 +120,7 @@ public Dictionary<string, string> GetArguments(string input = null)
arguments.Add(arg.Key, value);
}
}
return arguments;
}