Prevent boolean errors during extract operation (#509) (#511)

This commit is contained in:
Matt Hirsch
2016-07-16 05:56:15 -04:00
committed by Lovell Fuller
parent 15a577863a
commit c39a9b8de9
3 changed files with 7 additions and 4 deletions

View File

@@ -1289,10 +1289,14 @@ NAN_METHOD(pipeline) {
}
}
// Bandbool operation
baton->bandBoolOp = GetBooleanOperation(attrAsStr(options, "bandBoolOp"));
if(Has(options, New("bandBoolOp").ToLocalChecked()).FromJust()) {
baton->bandBoolOp = GetBooleanOperation(attrAsStr(options, "bandBoolOp"));
}
// Boolean operation
baton->booleanOp = GetBooleanOperation(attrAsStr(options, "booleanOp"));
if(Has(options, New("booleanOp").ToLocalChecked()).FromJust()) {
baton->booleanOp = GetBooleanOperation(attrAsStr(options, "booleanOp"));
}
// Function to notify of queue length changes
Callback *queueListener = new Callback(