bugGNUstep - Bugs: bug #31377, Unexpected error when adding nil...

Group
 
 

bug #31377: Unexpected error when adding nil to a dictionary via proxy...

Submitter:  Gregory John Casamento <gcasa>
Submitted:  Tue 19 Oct 2010 10:53:35 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 21 Oct 2010 05:06:12 AM UTC, comment #2: 

Closing this as it sounds like normal/correct behavior ... even the gdb info looks exactly like what you would want to happen in the server end when a client is adding nil to a dictionary via a connection.

Richard Frith-Macdonald <CaS>
Group Member
Wed 20 Oct 2010 07:10:55 AM UTC, comment #1: 

What unexpected error?
How can it be reproduced?

Richard Frith-Macdonald <CaS>
Group Member
Tue 19 Oct 2010 10:53:35 PM UTC, original submission:  

I know that adding a nil to a dictionary SHOULD cause an issue, but when doing so over a NSConnection via a proxy it seems to call the following:

 55 [opdict setObject: source forKey: @"source"];
 (gdb) n
 56 [opdict setObject: destination forKey: @"destination"];
 (gdb) n
 -[NSConnection(Private) _service:forwardForProxy:] (self=0x298cc848,
  _cmd=0x2893be48, aRmc=0x298ca0f8) at NSConnection.m:2848
   2848 if (debug_connection > 3)

In this case "destination" is nil.   I'd expect it to produce the error "attempt to set nil object for key."

In WorkspaceApplication.m:50.   This was found while working with Riccardo on fixing another bug.

G

Gregory John Casamento <gcasa>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by gcasa (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-21 CaS StatusNeed Info Invalid
        Open/ClosedOpen Closed
    2010-10-20 CaS StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code