. pls help me ... if i debug below code then it is showing Cannot access a property or method of a null object reference ..how to solve it
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;
}
}