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

Alex Miller made changes -
Field Original Value New Value
Labels enhancement
Jozef Wagner made changes -
Assignee Jozef Wagner [ wagjo ]
Jozef Wagner made changes -
Attachment clj-1383.diff [ 12879 ]
Jozef Wagner made changes -
Patch Code and Test [ 10002 ]
Priority Major [ 3 ] Minor [ 4 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: