Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9244517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:03:17+00:00 2026-06-18T09:03:17+00:00

I am working on upgrading Flex 3.0 application to Flex 3.6 SDK. The application

  • 0

I am working on upgrading Flex 3.0 application to Flex 3.6 SDK. The application has custom controls for input text, combo-boxes, etc. When I click on the combo-box I get exception when super.commitProperties() is called. This works fine with Flex 3.0 SDK.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls::ComboBox/destroyDropdown()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\ComboBox.as:1681]
    at mx.controls::ComboBox/styleChanged()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\ComboBox.as:1177]
    at mx.core::UIComponent/setBorderColorForErrorString()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5048]
    at mx.core::UIComponent/commitProperties()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6033]
    at mx.controls::ComboBase/commitProperties()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\ComboBase.as:993]
    at mx.controls::ComboBox/commitProperties()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\ComboBox.as:1291]
    at com.hanover.utility.controls.autotestcontrols::AutotestComboBox/commitProperties()[C:\App\Control\PLCustomComboBox.as:59]
    at mx.core::UIComponent/validateProperties()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5966]
    at mx.managers::LayoutManager/validateProperties()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:539]
    at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:689]
    at mx.managers::LayoutManager/validateNow()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:748]
    at mx.controls::ComboBox/displayDropdown()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\ComboBox.as:1638]
    at mx.controls::ComboBox/downArrowButton_buttonDownHandler()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\ComboBox.as:1796]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9590]
    at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\Button.as:2504]
    at mx.controls::Button/mouseDownHandler()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\Button.as:2750]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9590]
    at mx.controls::ComboBase/textInput_mouseEventHandler()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\controls\ComboBase.as:1384]

PLCustomCombobox.as pseudo-source with line # 59 indicated below

package com
{
    import com.name.utility.events.PLControlEvent;
    import com.name.utility.managers.ComboToolTipManager;

    import flash.events.Event;

    import mx.controls.ComboBox;
    import mx.events.FlexEvent;

    [Event(name="controlInitComplete", type="com.events.PLControlEvent")]

    [Event(name="plusControlValueChanged", type="com.name.utility.events.PLControlEvent")]

    public class PLControlComboBox extends ComboBox 
                                implements IPLControlControl
    {
        /**
         * A flag that indicates whether the control need to refresh.
         */     
        protected var isNeedRefresh:Boolean = false;

        /**
         * A flag that indicates whether the value of control is changed.
         */     
        protected var isValueChanged:Boolean = false;

        /**
         *  Constructor.
         */
        public function PLControlComboBox()
        {
            super();
            this.addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
        }

        /**
         * @private
         * override commitProperties for avoid dispatch event many times.
         */     
        override protected function commitProperties():void
        {
            super.commitProperties(); // <---- line # 59 is here

            if(isNeedRefresh)
            {
                this.dispatchEvent(new PLControlEvent(PLControlEvent.VALUE_CHANGED));
                isNeedRefresh = false;
            }

            if(isValueChanged)
            {
                this.dispatchEvent(new Event("PLControlComboboxChanged"));
                isValueChanged = false;
            }
        }

        /**
         * Add item's tooltip.
         * @private
         */
        override public function set measuredWidth(value:Number):void
        {
            super.measuredWidth = value;
            if(collection && collection.length > 0)
            {
                ComboToolTipManager.showItemToolTip(this);
            }
        }
        protected function onCreationComplete(event:FlexEvent):void
        {
            this.removeEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
            this.dispatchEvent(new PLControlEvent(PLControlEvent.INIT_COMPLETE));
        }

        public function checkValidity():void
        {
            if(_required && dataProvider && dataProvider.length > 0 && _defaultItemIndex == selectedIndex)
            {
                _validity   = false;
                errorString = "please select one";
            }
            else
            {
                _validity   = true;
                errorString = "";
            }
        }

        // ======================================
        // public function
        // ======================================
        private function itemChanged():void
        {
            isNeedRefresh = true;
            isValueChanged = true;
            checkValidity();
        }

        // ======================================
        // properties
        // ======================================

        private var _required:Boolean       = false;
        private var _validity:Boolean       = false;
        private var _defaultItemIndex:int   = 0;

        public function get required():Boolean
        {
            return _required;
        }

        [Inspectable(defaultValue=false, category="Other")]
        public function set required(value:Boolean):void
        {
            _required       = value;
            isNeedRefresh   = true;
            checkValidity();
        }

        [Bindable("PLControlComboboxChanged")]
        public function get controlValue():Object
        {
            return this.selectedIndex;
        }

        public function set controlValue(value:Object):void
        {
            if(value is Number)
            {
                this.selectedIndex = int(value);
                itemChanged();
            }
        }

        /**
         * @copy IPLControlControl#validity
         */
        public function get validity():Boolean
        {
            return _validity;
        }

        /**
         * @copy IPLControlControl#type
         */
        public function get type():String
        {
            return PLControlTypeList.CONTROL_TYPE_COMBOBOX;
        }

        /**
         * If required is true, the default Item can not be selected.
         */
        public function get defaultItemIndex():int
        {
            return _defaultItemIndex;
        }

        [Inspectable(defaultValue=0, type="Number", category="Other")]
        public function set defaultItemIndex(index:int):void
        {
            _defaultItemIndex = index;
            isNeedRefresh   = true;
            checkValidity();
        }

        /**
         * Override for check validity.
         */
        override public function set selectedIndex(value:int):void
        {
            super.selectedIndex = value;
            itemChanged();
        }

        /**
         * Override for check validity.
         */
        override public function set selectedItem(value:Object):void
        {
            super.selectedItem = value;
            itemChanged();
        }
    }
}

Its coming from mx.controls.Comboxbox line # 1681 because tween is null.

private function destroyDropdown():void
    {
        if (inTween)
            tween.endTween();//<---- exception on this line

        displayDropdown(false, null, false);
    }

Any suggestions of why this could be happening?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:03:18+00:00Added an answer on June 18, 2026 at 9:03 am

    Issue fixed in Apache Flex 4.10 and above, see https://issues.apache.org/jira/browse/FLEX-33382.

    If using an older SDK you could monkey patch mx:ComboBox like so adding the “&& tween” check:

    private function destroyDropdown():void
    {
        if (inTween && tween)
            tween.endTween();
    
        displayDropdown(false, null, false);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started working on upgrading a small component in a distributed java application.
I'm working in VS 2010 and working on upgrading our application to .NET 4.
Working on upgrading an application from Ruby 1.8.6/Rails 2.3.5 to Ruby 1.8.7/Rails3.0.11. In application.rb,
I'm working on upgrading an application from MVC3 to MVC4 and noticed something that
I've been working on upgrading an application, and I've come upon two brick walls,
I'm working on upgrading a website completely. The current website has a blog set
I'm working on upgrading an older application from .Net 2 to .Net 4. The
Recently I have been working on upgrading a big web application that was using
so I'm working on upgrading the architecture of application to a more modular design.
Since upgrading my Android SDK, I get a java.lang.VerifyError crash booting my previously working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.