mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-02 21:20:28 +12:00
Fix null exception
This commit is contained in:
parent
0be9b2311a
commit
a5b785d69b
|
@ -108,15 +108,18 @@ public string GetFileFormName()
|
|||
{
|
||||
Dictionary<string, string> arguments = new Dictionary<string, string>();
|
||||
|
||||
foreach (KeyValuePair<string, string> arg in Arguments)
|
||||
if (Arguments != null)
|
||||
{
|
||||
string value = arg.Value;
|
||||
foreach (KeyValuePair<string, string> arg in Arguments)
|
||||
{
|
||||
string value = arg.Value;
|
||||
|
||||
value = value.Replace("%input", "$input$"); // For backward compatibility
|
||||
value = NameParser.Parse(NameParserType.Text, value);
|
||||
value = value.Replace("$input$", input);
|
||||
value = value.Replace("%input", "$input$"); // For backward compatibility
|
||||
value = NameParser.Parse(NameParserType.Text, value);
|
||||
value = value.Replace("$input$", input);
|
||||
|
||||
arguments.Add(arg.Key, value);
|
||||
arguments.Add(arg.Key, value);
|
||||
}
|
||||
}
|
||||
|
||||
return arguments;
|
||||
|
|
Loading…
Reference in a new issue