From 2e7fb3d40d2682a1afbe1ec3d6229cbf703e5e8c Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Wed, 8 Mar 2017 16:07:56 -0800 Subject: [PATCH] Fix bug where GPV is sent with no parameters --- lib/session.coffee | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/session.coffee b/lib/session.coffee index 069e504..8e71f86 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -917,10 +917,11 @@ generateGetRpcRequest = (sessionContext) -> if sessionContext.deviceData.attributes.has(path) parameterNames.push(path) - return { - name: 'GetParameterValues' - parameterNames: (p.join('.') for p in parameterNames) - } + if parameterNames.length + return { + name: 'GetParameterValues' + parameterNames: (p.join('.') for p in parameterNames) + } return null