From c7c6d74f4bed948355d31f5ec6e5967f89e8d391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Wed, 2 Nov 2016 15:56:22 -0400 Subject: [PATCH] nameservice: handle null input in parseString Change-Id: Ib702571ca3733408471b6e2f6f9664b619c56f74 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8e00600..9e41914 100644 --- a/index.js +++ b/index.js @@ -108,7 +108,7 @@ function isHashZero(h) { } function parseString(s) { - return web3.toUtf8(s); + return s ? web3.toUtf8(s) : s; } function formatAddress(s) { -- GitLab