mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Merge pull request #1091 from uppi/fix-null-deref
Fix possible null dereference at ChangeText
This commit is contained in:
commit
f04984cfac
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue