Skip to content
Browse files

WHISTLE-42: handle the case when the key doesnt exist

  • Loading branch information...
1 parent bb3d8a8 commit 32bd35e31a49b13910a75f5c2b89a023b0c4f161 @k-anderson k-anderson committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/whistle-1.0.0/src/wh_json.erl
View
2 lib/whistle-1.0.0/src/wh_json.erl
@@ -364,7 +364,7 @@ get_keys(JObj) ->
get_keys([], JObj) ->
get_keys1(JObj);
get_keys(Keys, JObj) ->
- get_keys1(get_value(Keys, JObj)).
+ get_keys1(get_value(Keys, JObj, new())).
-spec get_keys1/1 :: (list() | json_object()) -> [pos_integer(),...] | json_strings().
get_keys1(KVs) when is_list(KVs) ->

0 comments on commit 32bd35e

Please sign in to comment.
Something went wrong with that request. Please try again.