[Mono-bugs] [Bug 472227] New: Multiview control problem when ActiveViewIndex is set in html mode

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 3 21:19:33 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=472227


           Summary: Multiview control problem when ActiveViewIndex is set
                    in html mode
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: zafar.ahmad at ebitlogix.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
When we set Multiview.ActiveViewIndex to any valid view. Mono framework fires
the ActiveViewChanged event even on Init of Multiview which cause the problem
of null reference of control when you have reffered any control in
ActiveViewChanged event handler. 

Steps to reproduce the problem:
1. Add Multiview and any number of views to the page and set 
ActiveViewIndex = "0"  in design mode. 
2. Place a button next to multiview (not in multiview) and set its id =
"Button1"
3. Add ActiveViewChanged event handler. 
4. write the following in ActiveViewChanged event hanlder. 

Button1.Visible = true;


Actual Results:
System.NullReferenceException: Object reference not set to an instance of an
object

Expected Results:
No exception should be thrown and page should be loaded. 

How often does this happen? 
Always

Additional Information:
System.NullReferenceException: Object reference not set to an instance of an
object  at AbsoluteEye.CodeManager.Web.UI.ImportWizard.mv_ActiveViewChanged
(System.Object sender, System.EventArgs e) [0x00000]   at
System.Web.UI.WebControls.MultiView.OnActiveViewChanged (System.EventArgs e)
[0x00000]   at System.Web.UI.WebControls.MultiView.set_ActiveViewIndex (Int32
value) [0x00000]   at System.Web.UI.WebControls.MultiView.OnInit
(System.EventArgs e) [0x00000]   at System.Web.UI.Control.InitRecursive
(System.Web.UI.Control namingContainer) [0x00000]   at
System.Web.UI.Control.AddedControl (System.Web.UI.Control control, Int32 index)
[0x00000]   at System.Web.UI.ControlCollection.Add (System.Web.UI.Control
child) [0x00000]   at System.Web.UI.Control.AddParsedSubObject (System.Object
obj) [0x00000]   at
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject
(System.Object obj) [0x00000]   at
ASP.importwizard_aspx.__BuildControl__bctrl_1343 (System.Web.UI.Control __ctrl)
[0x00000]   at System.Web.UI.CompiledBindableTemplateBuilder.InstantiateIn
(System.Web.UI.Control container) [0x00000]   at
System.Web.UI.UpdatePanel.OnInit (System.EventArgs e) [0x00000]   at
System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer)
[0x00000]   at System.Web.UI.Control.InitRecursive (System.Web.UI.Control
namingContainer) [0x00000]   at System.Web.UI.Control.InitRecursive
(System.Web.UI.Control namingContainer) [0x00000]   at
System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer)
[0x00000]   at System.Web.UI.Control.InitRecursive (System.Web.UI.Control
namingContainer) [0x00000]   at System.Web.UI.Page.InternalProcessRequest ()
[0x00000]   at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
context) [0x00000]

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list