From 5e85cd8b8fa25ed3fbfc260b48bcad098978407a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 9 Feb 2016 21:56:06 +0100 Subject: new reserve creation protocol --- extension/lib/wallet/query.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extension/lib/wallet/query.ts') diff --git a/extension/lib/wallet/query.ts b/extension/lib/wallet/query.ts index 82053138f..b82c85189 100644 --- a/extension/lib/wallet/query.ts +++ b/extension/lib/wallet/query.ts @@ -268,6 +268,10 @@ class QueryRoot { * Get one object from a store by its key. */ get(storeName, key): Promise { + if (key === void 0) { + throw Error("key must not be undefined"); + } + const {resolve, promise} = openPromise(); const doGet = (tx) => { -- cgit v1.2.3