. 请帮助我......如果我在下面的代码中调试,那么它显示无法访问空对象引用的属性或方法..如何解决它
protected function upload_itemClickHandler(event:ItemClickEvent):void
{
if(upload.selectedValue == "allupload")
{
theModel.removeAllViews();
//ModuleLbl.text = headerText;
theModel.uploadStatusMessage = "";
theModel.adminStatusMessage = "";
var gallComp:ManageGallery = new ManageGallery();
gallComp.theModel = theModel;
theModel.AdminUIComponent.addChild(gallComp as DisplayObject);
theModel.adminObj["theTaskName"] = "GalleryRepository";
theModel.adminObj["userID"] = theModel.activeUserObj.UserID;
theModel.adminObj["isAdminLogin"] = theModel.isAdminLogin;
theModel.theAdminEvt.dispatch();
theModel.tempAdminParams = theModel.adminObj;
}
}