Skip to content

Commit

Permalink
DYN-7927 Prevent Crash from none styled Infobubble (#15707)
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang committed Dec 6, 2024
1 parent 80b1654 commit c55ba86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/DynamoCoreWpf/Views/Preview/InfoBubbleView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows;
Expand Down Expand Up @@ -277,7 +277,8 @@ private void UpdateStyle()
SetStyle_ErrorCondensed();
break;
case InfoBubbleViewModel.Style.None:
throw new ArgumentException("InfoWindow didn't have a style (456B24E0F400)");
ViewModel.DynamoViewModel.Model.Logger.Log("InfoWindow didn't have a style (456B24E0F400)");
break;
}
}

Expand Down Expand Up @@ -1114,4 +1115,4 @@ private void Border_OnMouseEnter(object sender, MouseEventArgs e)
e.Handled = true;
}
}
}
}

0 comments on commit c55ba86

Please sign in to comment.