Skip to content

Commit

Permalink
Open File crash, param null check
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang committed Jan 29, 2024
1 parent a6ea907 commit d0c7337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ private void ShowOpenDialogAndOpenResult(object parameter)
return;
}

bool isTemplate = (parameter as string).Equals("Template");
bool isTemplate = parameter != null && (parameter as string).Equals("Template");

DynamoOpenFileDialog _fileDialog = new DynamoOpenFileDialog(this)
{
Expand Down

0 comments on commit d0c7337

Please sign in to comment.