Browse Source

Merge pull request #673 from yusuf-gunaydin/issue-666

 Fixed crash when redo is called on a TextBox with no redoable change #666
Steven Kirk 9 years ago
parent
commit
4dbdd3949e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Controls/Utils/UndoRedoHelper.cs

+ 1 - 1
src/Avalonia.Controls/Utils/UndoRedoHelper.cs

@@ -68,7 +68,7 @@ namespace Avalonia.Controls.Utils
 
         public void Redo()
         {            
-			if (_currentNode != null) {
+			if (_currentNode?.Next != null) {
 				_currentNode = _currentNode.Next;
 			}