You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Pratyoosh Sharma (JIRA)" <ji...@apache.org> on 2013/09/25 18:00:07 UTC

[jira] [Updated] (FLEX-33778) Combobox & DropdownList ListBase.js throws a Null pointer exception since the model is never initialized

     [ https://issues.apache.org/jira/browse/FLEX-33778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pratyoosh Sharma updated FLEX-33778:
------------------------------------

    Attachment: ComboError.zip

{code}Uncaught TypeError: Cannot call method 'set_dataProvider' of null ListBase.js:80
org.apache.flex.core.ListBase.set_dataProvider ListBase.js:80
org.apache.flex.binding.ConstantBinding.set_strand ConstantBinding.js:39
org.apache.flex.core.UIBase.addBead UIBase.js:133
org.apache.flex.utils.MXMLDataInterpreter.generateMXMLArray{code}

corresponding code

{code}
/**
 * @expose
 * @this {org.apache.flex.core.ListBase}
 * @param {Array.<Object>} value The text setter.
 */
org.apache.flex.core.ListBase.prototype.set_dataProvider =
    function(value) {
  this.model.set_dataProvider(value);
};
{code}
                
> Combobox & DropdownList ListBase.js throws a Null pointer exception since the model is never initialized
> --------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33778
>                 URL: https://issues.apache.org/jira/browse/FLEX-33778
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>            Reporter: Pratyoosh Sharma
>            Priority: Minor
>         Attachments: ComboError.zip
>
>
> It seems like ListBase.js throws a Null pointer exception since the model is never initialized for Dropdown & ComboBox classes on FlexJS.
> Not sure why the examples work since the latest code doesn't seems to have anything that initializes the model bead for these components

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira