Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-28163

DateSpinner : thrown TypeError when changing mode from time to date and acess minDate and maxDate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • Mobile: DateSpinner
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:

      1. Run the following simple code in debug :

      ---------------------------
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      creationComplete="init_app()">

      <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
      <fx:Date id="cDate" />
      </fx:Declarations>
      <fx:Script>
      <![CDATA[
      import flash.events.Event;

      import spark.components.calendarClasses.DateSelectorDisplayMode;

      public function init_app():void

      { ds1.displayMode=DateSelectorDisplayMode.DATE; trace ("minDate is " + ds1.minDate.toString() ) ; trace ("maxDate is " + ds1.maxDate.toString() ) ; }

      ]]
      >
      </fx:Script>
      <s:layout>
      <s:VerticalLayout />
      </s:layout>

      <s:DateSpinner id="ds1" displayMode="

      {DateSelectorDisplayMode.TIME}

      " />

      </s:Application>

      ----------------------------

      Actual Results:

      Run time error , and stack trace is here :
      [SWF] TestDateSpinner.swf - 2,829,824 bytes after decompression
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at spark.components::DateSpinner/commitProperties()[E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\DateSpinner.as:649]
      at mx.core::UIComponent/validateProperties()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8219]
      at mx.managers::LayoutManager/validateProperties()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:783]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

      Expected Results:

      Should be now error for this .

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: