case gives NPE when used with nil

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.

Environment

None

Attachments

3

Activity

Show:

Stuart Sierra January 28, 2011 at 9:00 PM

Patch 0702-fix-npe-in-nil-case-3.patch.gz replaces previous patches, but preserves correct commit messages and authors.

Stuart Halloway January 28, 2011 at 4:23 PM

waiting on Stuart's patch tweak

Stuart Sierra January 25, 2011 at 8:50 PM

Oops. Sorry. Will fix.

Aaron Bedra January 25, 2011 at 1:48 PM

Stuart, your patch replaces the original patch and the commit message doesn't reveal the intent of the fix. It also overwrites me as the original patch submitter.

Stuart Sierra January 21, 2011 at 7:44 PM

New patch 0702-fix-npe-in-nil-case-2.patch.gz adds a test.

Completed

Details

Assignee

Reporter

Approval

Patch

Priority

Affects versions

Fix versions

Created January 4, 2011 at 3:02 PM
Updated February 25, 2011 at 9:06 PM
Resolved February 25, 2011 at 9:06 PM