# Thread.current.key? nil

**URL:** <https://www.ruby-forum.com/t/thread-current-key-nil/136601>\
**Category:** Development\
**Created:** [May 4, 2008, 9:34am UTC](https://www.ruby-forum.com/t/thread-current-key-nil/136601 "2008-05-04T09:34:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [May 4, 2008, 9:34am UTC](https://www.ruby-forum.com/t/thread-current-key-nil/136601/1 "2008-05-04T09:34:40Z")

</div>

e$B0J2\<$N$h$&$K!“e(BThread.current.key? nil e$B$N5sF0$,%9%l%C%IJQ?t$,e(B  
e$B$”$k$+$I$&$+$GJQ$o$j$^$9!#e(B

% ./ruby -ve ’  
p Thread.current.key? nil  
Thread.current[:a] = 1  
p Thread.current.key? nil  
’  
ruby 1.9.0 (2008-05-02 revision 16284) [i686-linux]  
false  
-e:4:in `key?': nil is not a symbol (TypeError) from -e:4:in`’
