[Mono-bugs] [Bug 492666] New: NullReferenceException when binding a list to the ListView

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 6 18:12:34 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=492666


           Summary: NullReferenceException when binding a list to the
                    ListView
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: i586
        OS/Version: Windows Vista
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: mickaelrenault at free.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=284354)
 --> (http://bugzilla.novell.com/attachment.cgi?id=284354)
Code sample to reproduce the bug

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.7)
Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)

When i bind a generic list to a ListView, a NullReferenceException is thrown. I
don't have this exception under Visual Studio 2008. On attachment you can find
a sample which reproduce the bug.

Reproducible: Always

Steps to Reproduce:
1. unzip the attachment
2. start the website
3. click on the button :)
Actual Results:  
Stack trace :
System.NullReferenceException: Object reference not set to an instance of an
object
  at System.Web.UI.Control.ApplyTheme () [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.AddedControl (System.Web.UI.Control control, Int32
index) [0x00000] 
  at System.Web.UI.ControlCollection.AddAt (Int32 index, System.Web.UI.Control
child) [0x00000] 
  at System.Web.UI.WebControls.ListView.AddControlToContainer
(System.Web.UI.Control control, System.Web.UI.Control container, Int32
addLocation) [0x00000] 
  at System.Web.UI.WebControls.ListView.InsertDataItem (System.Object dataItem,
System.Web.UI.Control container, Boolean dataBinding,
System.Collections.ArrayList keyArray, Int32 startIndex, Int32 position,
System.Int32& displayIndex) [0x00000] 
  at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups
(System.Web.UI.WebControls.ListViewPagedDataSource dataSource, Boolean
dataBinding, InsertItemPosition insertPosition, System.Collections.ArrayList
keyArray) [0x00000] 
  at System.Web.UI.WebControls.ListView.CreateChildControls (IEnumerable
dataSource, Boolean dataBinding) [0x00000] 
  at System.Web.UI.WebControls.ListView.PerformDataBinding (IEnumerable data)
[0x00000] 
  at System.Web.UI.WebControls.DataBoundControl.InternalPerformDataBinding
(IEnumerable data) [0x00000] 
  at System.Web.UI.WebControls.DataBoundControl.OnSelect (IEnumerable data)
[0x00000] 
  at System.Web.UI.DataSourceView.Select
(System.Web.UI.DataSourceSelectArguments selectArgs,
System.Web.UI.DataSourceViewSelectCallback callBack) [0x00000] 
  at System.Web.UI.WebControls.DataBoundControl.PerformSelect () [0x00000] 
  at System.Web.UI.WebControls.ListView.PerformSelect () [0x00000] 
  at System.Web.UI.WebControls.BaseDataBoundControl.DataBind () [0x00000] 
  at Molecule.WebSite.atomes.photo.admin.Default.initAuthorizationPart ()
[0x00000] 
  at Molecule.WebSite.atomes.photo.admin.Default.Button1_Click (System.Object
sender, System.EventArgs e) [0x00000] 
  at System.Web.UI.WebControls.Button.OnClick (System.EventArgs e) [0x00000] 
  at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String
eventArgument) [0x00000] 
  at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
(System.String eventArgument) [0x00000] 
  at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler
sourceControl, System.String eventArgument) [0x00000] 
  at System.Web.UI.Page.RaisePostBackEvents () [0x00000] 
  at System.Web.UI.Page.ProcessRaiseEvents () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000]

-- 
Configure bugmail: http://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