Issue718377

classification
Title: PyObject.__findattr_ throws NPE
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bzimmer Nosy List: bzimmer, leouserz, pjenvey
Priority: low Keywords:

Created on 2003-04-09.16:44:00 by bzimmer, last changed 2008-06-08.03:34:23 by pjenvey.

Messages
msg826 (view) Author: Brian Zimmer (bzimmer) Date: 2003-04-09.16:44:00
a = {}
getattr(a, None)

throws an NPE
msg827 (view) Author: Deleted User leouserz (leouserz) Date: 2007-01-14.23:08:58
it may bomb at that point, but why isn't the PyReflectedFunction catching this and throwing the arg can't be coerced to error?  That seems like the place it should bomb at.  More investigation needed.
msg3248 (view) Author: Philip Jenvey (pjenvey) Date: 2008-06-08.03:34:20
so I assume None was being translated to a null here, which somehow caused 
an NPE (maybe in new String(null) back then?).

on trunk getattr refuses any key that isn't a basestring, which should 
take care of this. closing out
History
Date User Action Args
2008-06-08 03:34:23pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg3248
nosy: + pjenvey
2003-04-09 16:44:00bzimmercreate