[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: |
Stephen Compall |
Subject: |
[Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception |
Date: |
Fri, 31 Dec 2004 05:00:58 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; 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:
Stephen Compall <address@hidden>
'Date:
Fri 12/31/2004 at 05:01 (America/Chicago)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | Fixed | None
Status | Closed | Open
------------------ Additional Follow-up Comments ----------------------------
Reopened per biiru's request. A casual glance over the code suggests to me
that the Items property should be used in set_DroppedDown rather than direct
access to the items instance variable; others, however, are probably more
qualified to make such judgements.
/**************************************************************************/
[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: Fri 12/31/2004 at 05:01 By: Stephen Compall <S11001001>
Reopened per biiru's request. A casual glance over the code suggests to me
that the Items property should be used in set_DroppedDown rather than direct
access to the items instance variable; others, however, are probably more
qualified to make such judgements.
-------------------------------------------------------
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&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, 2004/12/29
- [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 <=
- [Pnet-developers] [bugs #11428] Empty ComboBox, null reference exception, Deryk Robosson, 2004/12/31