dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception


From: Deryk Robosson
Subject: [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception
Date: Thu, 30 Dec 2004 13:08:06 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 Galeon/1.3.18

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #11428] Latest Modifications:

Changes by: 
                Deryk Robosson <address@hidden>
'Date: 
                Thu 12/30/2004 at 13:08 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
fixed in cvs






/**************************************************************************/
[bugs #11428] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11428>
Project: DotGNU Portable.NET
Submitted by: 0
On: Wed 12/29/2004 at 04:26

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  Fixed
Privacy:  Public
Assigned to:  None
Status:  Closed


Summary:  Empty ComboBox, null reference exception

Original Submission:  When clicking on the dropdown button for a combobox with 
no items the application exits with the following output.

Uncaught exception: System.NullReferenceException: The value 'null' was found 
where an instance of an object was required
        at System.Windows.Forms.ComboBox.set_DroppedDown(Boolean) in 
./ComboBox.cs:236

I do have a sample application i can include, with source, that triggers this 
exception if it would help you


Follow-up Comments
------------------


-------------------------------------------------------
Date: Thu 12/30/2004 at 13:08       By: Deryk Robosson <drobosson>
fixed in cvs

-------------------------------------------------------
Date: Wed 12/29/2004 at 15:39       By: Jacob Alberty <biiru>
just a note, this patch from cvs diff fixes it. But it is by no means a proper 
fix. the problem appears to stem from items being unitialized. this patch 
simply returns if items is unitialized. 

Index: ComboBox.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/ComboBox.cs,v
retrieving revision 1.13
diff -r1.13 ComboBox.cs
235a236,237
>                                       if (items == null)
>                                               return;


-------------------------------------------------------
Date: Wed 12/29/2004 at 14:53       By: 0 <None>
I have attached a .zip file containing sourcecode (for sharpdevelop) and 
binary, to cause the crash load pnetcrash.exe up with ilrun then click on the 
arrow for the dropdown list. It should immediately crash, this was verified on 
cvs from approx 10 hours ago.

-------------------------------------------------------
Date: Wed 12/29/2004 at 04:58       By: Deryk Robosson <drobosson>
A small test case would help if you could provide one please.






File Attachments
-------------------

-------------------------------------------------------
Date: Wed 12/29/2004 at 14:53  Name: pnetcrash.zip  Size: 12.2KB   By: None
Sample code with binary
http://savannah.gnu.org/bugs/download.php?item_id=11428&amp;item_file_id=2002






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11428>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]