Fixed bug

Apparently the array is null instead of empty... Thanks Java!