if (this.focusedItem.commands != null) {
if (this.focusedItem != null && this.focusedItem.commands != null) {
	public void clear() {		this.itemsList.clear();		this.items = new Item[0];		if (this.focusedIndex != -1) {			this.autoFocusEnabled = true;			//#if polish.Container.clearResetsFocus != false				this.autoFocusIndex = 0;			//#else				this.autoFocusIndex = this.focusedIndex;			//#endif						this.focusedIndex = -1;			if (this.focusedItem.commands != null) {				Screen scr = getScreen();				if (scr != null) {					scr.removeItemCommands(this.focusedItem);				}			}		}		this.yOffset = 0;		this.targetYOffset = 0;		if (this.isInitialised) {			this.isInitialised = false;			//this.yBottom = this.yTop = 0;			repaint();		}	}