summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Shahid <jvshahid@gmail.com>2013-01-15 07:59:24 -0500
committerFlorian Frank <flori@ping.de>2013-02-04 23:48:51 +0100
commit241622f2a78f17ec9ed86cac992a44926e7a1133 (patch)
tree48679810ee1d414f4b44bad98d42380428979f3a /tests
parentd7b18ba149400971a1415468fd865f8d4794d789 (diff)
downloadjson-241622f2a78f17ec9ed86cac992a44926e7a1133.tar.gz
fix a bug in the JRuby implementation. getInstanceVariable() can return a null which causes NPE.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_json_generate.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_json_generate.rb b/tests/test_json_generate.rb
index 5947bf6..978c625 100755
--- a/tests/test_json_generate.rb
+++ b/tests/test_json_generate.rb
@@ -276,6 +276,7 @@ EOT
def test_hash_likeness_set_symbol
state = JSON.state.new
assert_equal nil, state[:foo]
+ assert_equal nil.class, state[:foo].class
assert_equal nil, state['foo']
state[:foo] = :bar
assert_equal :bar, state[:foo]