Clojure

bean throws NPE when key doesn't exist

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: Release 1.3
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test

Description

The result of (bean obj) throws a NullPointerException when passed in a key that doen't exist. I think instead it should return nil to be consistent with maps and records - or at least the error message should be more explicit.

Activity

Alexander Redington made changes -
Field Original Value New Value
Assignee Alexander Redington [ aredington ]
Alexander Redington made changes -
Status Open [ 1 ] In Progress [ 3 ]
Alexander Redington made changes -
Attachment clj-724.diff [ 10163 ]
Alexander Redington made changes -
Approval Test
Patch Code and Test
Alexander Redington made changes -
Assignee Alexander Redington [ aredington ]
Stuart Halloway made changes -
Status In Progress [ 3 ] Closed [ 6 ]
Resolution Declined [ 2 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: