mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fix null pointer deref (#166)
This commit is contained in:
committed by
Miguel de Icaza
parent
e8fa1e3997
commit
c9d7df13fd
@@ -268,8 +268,10 @@ namespace Terminal.Gui {
|
||||
break;
|
||||
|
||||
case Key.ControlY: // Control-y, yank
|
||||
if (Clipboard.Contents == null)
|
||||
return true;
|
||||
var clip = TextModel.ToRunes (Clipboard.Contents);
|
||||
if (clip== null)
|
||||
if (clip == null)
|
||||
return true;
|
||||
|
||||
if (point == text.Count) {
|
||||
|
||||
Reference in New Issue
Block a user