diff --git a/doublearray.js b/doublearray.js index 149ef05..88b97b3 100644 --- a/doublearray.js +++ b/doublearray.js @@ -551,6 +551,10 @@ var buffer = stringToUtf8Bytes(key); + if (buffer === null) { + return [] + } + var parent = ROOT_ID; var child = NOT_FOUND;