         {
             setSelectedIndex(actualProposedSelectedIndex, true);
         }
-                
-        textInput.selectRange(-1, -1);
+
+		if (textInput)
+			textInput.selectRange(-1, -1);
         
         userTypedIntoText = false;
     }

        if (newIndex >= 0)
        {
            var item:Object = dataProvider ? dataProvider.getItemAt(newIndex) : undefined;
            if (item)
            {
                var itemString:String = itemToLabel(item);
                textInput.selectAll();
                textInput.insertText(itemString);
                textInput.selectAll();

     */
    override public function setFocus():void
    {
        if (stage && textInput)
        {            
            stage.focus = textInput.textDisplay;            
        }
