if (string == null) break;
public void setItems (String [] items) {	checkWidget();	if (items == null) error (SWT.ERROR_NULL_ARGUMENT);	/*	* Bug in AIX.  When all list items are replaced	* in a scrolled list that is currently showing a	* horizontal scroll bar, the horizontal scroll bar	* is hidden, but the list does not grow to take up	* the space once occupied by the bar.  The fix is	* of force the horizontal bar to be recomputed by	* removing all items and resizing the list.	*/	OS.XmListSetPos (handle, 0);	OS.XmListDeselectAllItems (handle);	if ((style & SWT.H_SCROLL) != 0) {		OS.XmListDeleteAllItems (handle);	}	int index = 0;	int [] table = new int [items.length];	String codePage = getCodePage ();	while (index < items.length) {		String string = items [index];		if (string == null) break; 		byte [] buffer = Converter.wcsToMbcs (codePage, string, true);		int xmString = OS.XmStringCreateLocalized (buffer);		if (xmString == 0) break;		table [index++] = xmString;	}	int ptr = OS.XtMalloc (index * 4);	OS.memmove (ptr, table, index * 4);	int [] argList = {OS.XmNitems, ptr, OS.XmNitemCount, index};	OS.XtSetValues (handle, argList, argList.length / 2);	for (int i=0; i<index; i++) OS.XmStringFree (table [i]);	OS.XtFree (ptr);	/*	* Bug in Motif.  Resize the list to work around	* the horizontal scroll bar display bug described	* above.	*/	if ((style & SWT.H_SCROLL) != 0) {		OS.XtResizeWindow (handle);	}	if (index < items.length) error (SWT.ERROR_ITEM_NOT_ADDED);}