diff options
author | Vitaly Takmazov | 2022-01-12 12:06:24 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-01-12 12:06:24 +0300 |
commit | 895a914d60f09127eb30d103b0126424caf211d6 (patch) | |
tree | 3d89892bd00a1b86da7ee3b648e5f495271b4566 | |
parent | a7a428ecfa828e8b00ce8ea7d3cae512f38c487c (diff) |
Do not crash on empty message body
-rw-r--r-- | Juick/Controls/HyperLinkRichTextBox.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Juick/Controls/HyperLinkRichTextBox.cs b/Juick/Controls/HyperLinkRichTextBox.cs index 6ec6883..29b44c9 100644 --- a/Juick/Controls/HyperLinkRichTextBox.cs +++ b/Juick/Controls/HyperLinkRichTextBox.cs @@ -27,6 +27,7 @@ namespace Juick.Controls { var richTextBox = (HyperLinkRichTextBox)dependencyObject; var stringValue = (string)dependencyPropertyChangedEventArgs.NewValue; + if (string.IsNullOrEmpty(stringValue)) return; var paragraph = new Paragraph(); var index = 0; |