fix possible segfault if chanellist is empty

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5bfbae4ca9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-08-13 (Thu, 13 Aug 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2015-08-13 15:27:25 +02:00
parent cf544240ec
commit 96bf33555f

View File

@@ -1820,6 +1820,9 @@ void CChannelList::paintButtonBar(bool is_current)
void CChannelList::paintItem(int pos, const bool firstpaint)
{
if( (*chanlist).empty() ){
return;
}
int ypos = y+ theight + pos*fheight;
fb_pixel_t color;
fb_pixel_t bgcolor;