Skip to content

Commit f7737e4

Browse files
committed
add null check for UX UT
1 parent 051856c commit f7737e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/TokenizingTextBox/TokenizingTextBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ private void GuardAgainstPlaceholderTextLayoutIssue()
497497
// We toggle the visibility of the Placeholder ContentControl in order to force it's layout to update properly
498498
var placeholder = ContainerFromItem(_lastTextEdit).FindDescendantByName("PlaceholderTextContentPresenter");
499499

500-
if (placeholder.Visibility == Visibility.Visible)
500+
if (placeholder?.Visibility == Visibility.Visible)
501501
{
502502
placeholder.Visibility = Visibility.Collapsed;
503503

0 commit comments

Comments
 (0)