无法访问空对象引用的属性或方法. [英] Cannot access a property or method of a null object reference.

查看:259
本文介绍了无法访问空对象引用的属性或方法.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好..,
我在我的Flex应用程序中遇到以下错误,我找不到发生此错误的位置.此错误的可能原因是什么


TypeError:错误#1009:无法访问空对象引用的属性或方法.
在mx.controls :: SWFLoader/contentHolder_addedHandler() [E:\ dev \ 4.x \ frameworks \ projects \ framework \ src \ mx \ controls \ SWFLoader.as:2543]

谢谢.

Hello..,
i am getting following error in my flex application,i could not find where this error occur. what could be the possible reason for this error


TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls::SWFLoader/contentHolder_addedHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\SWFLoader.as:2543]

Thanks.

推荐答案

您要访问的父对象为null.初始化对象,然后您就可以访问它的方法.
the parent object you''re trying to access is null. init the object, than you can access it''s methods.


我可以给我一个示例代码,以便我了解发生了什么....
Can i have a sample code so that i can understand what''s going on....


这篇关于无法访问空对象引用的属性或方法.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆