Actionscript:TypeError:错误#2007:参数构造函数失败必须为非null

时间:2014-06-04 16:24:29

标签: actionscript-3 flash nullreferenceexception

使用debian linux下的调试插件在浏览器中运行我的Flash应用程序时出现以下异常。当我使用或不使用调试器在FlashBuilder(在Windows 7下)运行应用程序时,我无法复制异常。

TypeError: Error #2007: Parameter Constructor Failed must be non-null.
    at flash.globalization::Collator/ctor()
    at flash.globalization::Collator()
    at spark.globalization.supportClasses::CollatorBase/http://www.adobe.com/2006/flex/mx/internal::createWorkingInstance()
    at spark.globalization.supportClasses::GlobalizationBase/localeChanged()
    at spark.globalization.supportClasses::GlobalizationBase/setStyle()
    at spark.collections::SortField/get stringCollator()
    at spark.collections::SortField/stringCompare()
    at spark.collections::Sort/internalCompare()
    at Array$/_sort()
    at Array/http://adobe.com/AS3/2006/builtin::sort()
    at spark.collections::Sort/sort()
    at mx.collections::ListCollectionView/internalRefresh()
    at mx.collections::ListCollectionView/refresh()
    at com.xxx.yyy.model.proxy::RemoteIOProxy/handlePossibleInputs()
    at com.xxx.yyy.model.proxy::RemoteIOProxy/handleGetResponse()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.xxx.yyy.model.message::ResponseFactory/createResponse()
    at com.xxx.yyy.model.proxy::ConnectionProxy/handleData()

我不确定这个例外意味着什么。它看起来像“参数x必须为非null”。异常,除了表明该参数被命名为“构造函数失败”,这实际上没有意义。

我认为有问题的代码在某个地方的这个块中,但是,我不知道如何让vm在堆栈跟踪中吐出行号。

// possibleInputs is a populated ArrayCollection
var sort:Sort = new Sort();
var sortField:SortField = new SortField("name");
sort.fields = [sortField];
possibleInputs.sort = sort;
possibleInputs.refresh();

0 个答案:

没有答案