summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-01-12 12:06:24 +0300
committerGravatar Vitaly Takmazov2022-01-12 12:06:24 +0300
commit895a914d60f09127eb30d103b0126424caf211d6 (patch)
tree3d89892bd00a1b86da7ee3b648e5f495271b4566
parenta7a428ecfa828e8b00ce8ea7d3cae512f38c487c (diff)
Do not crash on empty message body
-rw-r--r--Juick/Controls/HyperLinkRichTextBox.cs1
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;