Fix java.lang.ArrayIndexOutOfBoundsException: 1 when using collapsing
Merge pull request #481 from emmanuel-keller/master

Fix java.lang.ArrayIndexOutOfBoundsException: 1 when using collapsing