Skip to content

Commit

Permalink
added null check
Browse files Browse the repository at this point in the history
  • Loading branch information
IamRanjeetSingh committed Dec 9, 2024
1 parent 122d1b4 commit 67642eb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ private void ExportParametersToDataSource(object sender, RoutedEventArgs e)
private void UploadToGlobalParam(object sender, RoutedEventArgs e)
{
AppModelParameter CurrentAMDP = (AppModelParameter)ModelParametersGrid.CurrentItem;
if (CurrentAMDP == null)
{
return;
}

GlobalAppModelParameter globalAppModelParameter = GlobalAppModelParameter.DuplicateAppModelParamAsGlobal(CurrentAMDP);

Expand Down

0 comments on commit 67642eb

Please sign in to comment.