Hi,is it correct that the code fragment below throws and NPE if one of the array elements is null and the array is converted to a StringArray?
ArrayFS fsArrayFS = cas.createArrayFS(3);
fsArrayFS.set(0, cas.getDocumentAnnotation());
fsArrayFS.set(1, cas.getDocumentAnnotation());
fsArrayFS.toStringArray(); // throws NPE
When doing the same for StringArrayFS the last element in the resultant
StringArray is null. The seems to me the desired behavior.
-- Michael
