Clojure

case gives NPE when used with nil

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: Release 1.2
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test
  • Approval:
    Ok

Description

This code gives a NullPointerException:

(case nil
nil "foo")

If fixing this is impossible for implementation reasons, at least the documentation and error messages should be improved.

Activity

Rich Hickey made changes -
Field Original Value New Value
Fix Version/s Release.Next [ 10038 ]
Approval Vetted
Aaron Bedra made changes -
Waiting On richhickey
Rich Hickey made changes -
Waiting On richhickey
Aaron Bedra made changes -
Assignee Aaron Bedra [ aaron ]
Aaron Bedra made changes -
Attachment 0702-fix-npe-in-nil-case.patch [ 10072 ]
Approval Vetted Test
Aaron Bedra made changes -
Waiting On richhickey
Rich Hickey made changes -
Waiting On richhickey
Fogus made changes -
Patch Code
Stuart Sierra made changes -
Attachment 0702-fix-npe-in-nil-case-2.patch.gz [ 10087 ]
Patch Code Code and Test
Stuart Sierra made changes -
Assignee Aaron Bedra [ aaron ] Stuart Sierra [ stuart.sierra ]
Stuart Halloway made changes -
Approval Test Incomplete
Aaron Bedra made changes -
Waiting On stuart.sierra
Stuart Sierra made changes -
Assignee Stuart Sierra [ stuart.sierra ]
Attachment 0702-fix-npe-in-nil-case-3.patch.gz [ 10097 ]
Approval Incomplete Test
Waiting On stuart.sierra
Stuart Halloway made changes -
Approval Test Screened
Rich Hickey made changes -
Approval Screened Ok
Stuart Halloway made changes -
Status Open [ 1 ] Closed [ 6 ]
Resolution Completed [ 1 ]

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: