Clojure

Should name throw on nil?

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.6
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test

Description

The name function throws NullPointerException on nil. Since the name function is about obtaining the string form of a specific object it should not throw on nil. It should just return the nil object as the str fn does.

Activity

Hide
Jozef Wagner added a comment -

added patch with test

Show
Jozef Wagner added a comment - added patch with test

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: