{"action":"created","issue":{"url":"https://api.github.com/repos/jas-/secStore.js/issues/6","repository_url":"https://api.github.com/repos/jas-/secStore.js","labels_url":"https://api.github.com/repos/jas-/secStore.js/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jas-/secStore.js/issues/6/comments","events_url":"https://api.github.com/repos/jas-/secStore.js/issues/6/events","html_url":"https://github.com/jas-/secStore.js/issues/6","id":143980228,"number":6,"title":"localStorage with null values","user":{"login":"MounicaChette","id":16791909,"avatar_url":"https://avatars.githubusercontent.com/u/16791909?v=3","gravatar_id":"","url":"https://api.github.com/users/MounicaChette","html_url":"https://github.com/MounicaChette","followers_url":"https://api.github.com/users/MounicaChette/followers","following_url":"https://api.github.com/users/MounicaChette/following{/other_user}","gists_url":"https://api.github.com/users/MounicaChette/gists{/gist_id}","starred_url":"https://api.github.com/users/MounicaChette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MounicaChette/subscriptions","organizations_url":"https://api.github.com/users/MounicaChette/orgs","repos_url":"https://api.github.com/users/MounicaChette/repos","events_url":"https://api.github.com/users/MounicaChette/events{/privacy}","received_events_url":"https://api.github.com/users/MounicaChette/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-28T13:40:44Z","updated_at":"2016-03-29T07:22:09Z","closed_at":"2016-03-29T07:22:09Z","body":"When ever i search for a local storage object which is null, i am getting the first local object from the storage.get method. Is this any kind of bug? Do we have a turn around for this?"},"comment":{"url":"https://api.github.com/repos/jas-/secStore.js/issues/comments/202752431","html_url":"https://github.com/jas-/secStore.js/issues/6#issuecomment-202752431","issue_url":"https://api.github.com/repos/jas-/secStore.js/issues/6","id":202752431,"user":{"login":"MounicaChette","id":16791909,"avatar_url":"https://avatars.githubusercontent.com/u/16791909?v=3","gravatar_id":"","url":"https://api.github.com/users/MounicaChette","html_url":"https://github.com/MounicaChette","followers_url":"https://api.github.com/users/MounicaChette/followers","following_url":"https://api.github.com/users/MounicaChette/following{/other_user}","gists_url":"https://api.github.com/users/MounicaChette/gists{/gist_id}","starred_url":"https://api.github.com/users/MounicaChette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MounicaChette/subscriptions","organizations_url":"https://api.github.com/users/MounicaChette/orgs","repos_url":"https://api.github.com/users/MounicaChette/repos","events_url":"https://api.github.com/users/MounicaChette/events{/privacy}","received_events_url":"https://api.github.com/users/MounicaChette/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T07:22:09Z","updated_at":"2016-03-29T07:22:09Z","body":"This piece of code have fixed my issue\r\nif (ret) {\r\n            ret = sjcl.decrypt(opts.passphrase, ret);\r\n            ret = storage.toJSON(ret);\r\n\r\n            if (ret) {\r\n                cb(null, ret);\r\n            } else {\r\n                cb('Error occured retrieving storage data');\r\n            }\r\n        }\r\n        else {\r\n            cb('No storage data found for specified key.');\r\n        }"}}