Skip to content

Commit

Permalink
Fix nullptr grabber instance check
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed May 1, 2024
1 parent 6f8ec24 commit bc67096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/api/HyperAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ void HyperAPI::handleLutCalibrationCommand(const QJsonObject& message, const QSt
sendSuccessReply(command, tan);

if (subcommand == "capture")
_lutCalibrator->incomingCommand(_instanceManager->getRootPath(), _videoGrabber->grabberWrapper(), getActiveComponent(), checksum, _startColor, _endColor, limitedRange, saturation, luminance, gammaR, gammaG, gammaB, coef);
_lutCalibrator->incomingCommand(_instanceManager->getRootPath(), (_videoGrabber != nullptr) ? _videoGrabber->grabberWrapper() : nullptr, getActiveComponent(), checksum, _startColor, _endColor, limitedRange, saturation, luminance, gammaR, gammaG, gammaB, coef);
else
_lutCalibrator->stopHandler();
}
Expand Down

0 comments on commit bc67096

Please sign in to comment.