stop join tripping up if last message of buffer is blank.

This commit is contained in:
Dave Conway-Jones 2019-06-01 23:49:27 +01:00
parent 53ab6f8569
commit 2cc19e7e32
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
1 changed files with 3 additions and 1 deletions

View File

@ -627,7 +627,9 @@ module.exports = function(RED) {
var group = inflight[partId];
if (payloadType === 'buffer') {
inflight[partId].bufferLen += property.length;
if (property !== undefined) {
inflight[partId].bufferLen += property.length;
}
}
if (payloadType === 'object') {
group.payload[propertyKey] = property;