[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception
From: |
Jacob Alberty |
Subject: |
[Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception |
Date: |
Wed, 29 Dec 2004 15:39:46 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #11428] Latest Modifications:
Changes by:
Jacob Alberty <address@hidden>
'Date:
Wed 12/29/2004 at 15:39 (GMT)
------------------ Additional Follow-up Comments ----------------------------
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;
/**************************************************************************/
[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: None
Privacy: Public
Assigned to: None
Status: Open
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: 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&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/
- [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception, anonymous, 2004/12/28
- [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception, Deryk Robosson, 2004/12/28
- [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception, anonymous, 2004/12/29
- [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception,
Jacob Alberty <=
- [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception, Deryk Robosson, 2004/12/30
- [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception, Stephen Compall, 2004/12/31
- [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception, Deryk Robosson, 2004/12/31