for (int i=0; i<items.length; i++) { if (items [i] == null) error (SWT.ERROR_INVALID_ARGUMENT); }
public void setItems (String [] items) {	checkWidget();	if (items == null) error (SWT.ERROR_NULL_ARGUMENT);	OS.PtListDeleteAllItems (handle);	int[] itemsPtr = new int [items.length];	for (int i=0; i<itemsPtr.length; i++) {		byte [] buffer = Converter.wcsToMbcs (null, items [i], true);		int ptr = OS.malloc (buffer.length);		OS.memmove (ptr, buffer, buffer.length);		itemsPtr [i] = ptr;	}	OS.PtListAddItems (handle, itemsPtr, itemsPtr.length, 0);	for (int i=0; i<itemsPtr.length; i++) {		OS.free (itemsPtr [i]);	}}