diff --git a/page_browser.go b/page_browser.go index 02a30e3..d5f4913 100644 --- a/page_browser.go +++ b/page_browser.go @@ -140,7 +140,9 @@ func (ui *Ui) createBrowserPage(indexes *[]subsonic.SubsonicIndex) *BrowserPage }) browserPage.artistList.SetChangedFunc(func(index int, _ string, _ string, _ rune) { - browserPage.handleEntitySelected(browserPage.artistIdList[index]) + if index < len(browserPage.artistIdList) { + browserPage.handleEntitySelected(browserPage.artistIdList[index]) + } }) // "add to playlist" modal