diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e140e082..4ca591f45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Fixed +- irc: fix crash on /list buffer when a filter is set ([#2197](https://github.com/weechat/weechat/issues/2197)) - core: fix build on Android ([#2180](https://github.com/weechat/weechat/issues/2180)) ## Version 4.4.2 (2024-09-08) diff --git a/src/plugins/irc/irc-list.c b/src/plugins/irc/irc-list.c index 4d4f12ace..369365cec 100644 --- a/src/plugins/irc/irc-list.c +++ b/src/plugins/irc/irc-list.c @@ -506,6 +506,12 @@ irc_list_display_line (struct t_irc_server *server, int line) ptr_channel = (struct t_irc_list_channel *)weechat_arraylist_get ( server->list->filter_channels, line); + if (!ptr_channel) + { + weechat_printf_y (server->list->buffer, line, ""); + return; + } + /* line color */ if (line == server->list->selected_line) {