fix nil dereference in ui.Active()
This commit is contained in:
@@ -73,6 +73,9 @@ func (ui *Ui) endDraw() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ui *Ui) Active() string {
|
func (ui *Ui) Active() string {
|
||||||
|
if ui.activeElement == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
return ui.activeElement.Name
|
return ui.activeElement.Name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user