avoid crash if an empty slice is given
avoid crash if an empty slice is given

rrader/jpype,rrader/jpype,marscher/jpype,icedwater/jpype,Cosmius/jpype,ktan2020/jpype,ktan2020/jpype,originell/jpype,rrader/jpype,originell/jpype,icedwater/jpype,marscher/jpype,rrader/jpype,icedwater/jpype,marscher/jpype,icedwater/jpype,Cosmius/jpype,marscher/jpype,ktan2020/jpype,originell/jpype,Cosmius/jpype,originell/jpype,ktan2020/jpype,originell/jpype,Cosmius/jpype