Skip to content

Commit

Permalink
Fix ArgumentNullException
Browse files Browse the repository at this point in the history
  • Loading branch information
emoacht committed Jan 9, 2024
1 parent 482c039 commit e1a5cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Monitorian.Core/AppKeeper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private async Task ParseArgumentsAsync(StartupEventArgs e, string[] standardOpti
const char optionMark = '/';
var isStandard = false;

var buffer = args
var buffer = args?
.Where(x => !string.IsNullOrWhiteSpace(x))
.GroupBy(x => (x[0] == optionMark) ? (isStandard = standardOptions.Contains(x.ToLower())) : isStandard)
.ToArray() ?? [];
Expand Down

0 comments on commit e1a5cc0

Please sign in to comment.