From d90b8abb8ae87ce9124ee3aa7bb855fae8894e54 Mon Sep 17 00:00:00 2001 From: reisel Date: Thu, 22 Mar 2018 13:41:11 +0200 Subject: [PATCH] fix invalid path join pathWithSymbols may be undefined and then an exception is thrown from the path.join method. bug details: #436 --- lib/StripeResource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/StripeResource.js b/lib/StripeResource.js index 2b12d832d1..89bed1b12b 100644 --- a/lib/StripeResource.js +++ b/lib/StripeResource.js @@ -72,7 +72,7 @@ StripeResource.prototype = { createResourcePathWithSymbols: function(pathWithSymbols) { return '/' + path.join( this.resourcePath, - pathWithSymbols + pathWithSymbols || '' ).replace(/\\/g, '/'); // ugly workaround for Windows },