mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Fix null exception
This commit is contained in:
parent
0be9b2311a
commit
a5b785d69b
1 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue