Skip to content

Commit 0146458

Browse files
committed
fix: missing nullopt check
1 parent 2e9288c commit 0146458

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

source/MaaFramework/Task/TaskBase.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ ActionResult TaskBase::run_action(const RecoResult& reco, const PipelineData& da
108108
return {};
109109
}
110110

111+
if (!reco.box) {
112+
LogError << "reco box is nullopt";
113+
return {};
114+
}
115+
111116
if (debug_mode() || !data.focus.is_null()) {
112117
const json::value cb_detail {
113118
{ "task_id", task_id() },

0 commit comments

Comments
 (0)