Merge pull request #1091 from uppi/fix-null-deref

Fix possible null dereference at ChangeText
This commit is contained in:
Jaex 2015-10-30 07:07:33 +02:00
commit f04984cfac

View file

@ -77,7 +77,7 @@ public string Text
internal void ChangeText(string newText, bool allowUndoable)
{
if ((text == null && newText != null) || !text.Equals(newText))
if ((text == null && newText != null) || (text != null && !text.Equals(newText)))
{
if (makeUndoable && allowUndoable)
{