Fixed bug in the last commit which caused incomplete objects in init task

This commit is contained in:
Zaid Abdulla committed 2013-07-22 19:45:12 +03:00
1 parent 9f83c29a93
commit 8167c0c6e5
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ this.getParameterNames = (task, methodResponse, callback) ->
deviceUpdates.deletedObjects = [rootPath.slice(0, -1)]
# some devices don't return the root object as described in the standard. add manually to update timestamp
deviceUpdates.parameterNames.push([task.parameterPath])
deviceUpdates.parameterNames.push([task.parameterPath]) if !!task.parameterPath
callback(null, STATUS_FINISHED, null, deviceUpdates)
)