Ghost control getOverlapping(int index) not working?

Hi all. In my model I have a spatial with a character control and a ghost control, so its ghost control’s getOverlappingCount() is always at least 1. When I call the ghost control’s getOverlapping at index 0, I get an array index out of bounds exception saying index 0 size 0. Am I doing something wrong with the function? Any help would be greatly appreciated!