Sanity check of buttons length before calling indexes
Merge pull request #60 from yohanboniface/no_buttons

Sanity check of buttons length before calling indexes