diff options
-rw-r--r-- | src/lib/corelib/buildgraph/executorjob.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/executorjob.cpp b/src/lib/corelib/buildgraph/executorjob.cpp index e2ed11ba2..8fa420526 100644 --- a/src/lib/corelib/buildgraph/executorjob.cpp +++ b/src/lib/corelib/buildgraph/executorjob.cpp @@ -96,7 +96,8 @@ void ExecutorJob::run(Transformer *t) void ExecutorJob::cancel() { - QBS_ASSERT(m_currentCommandExecutor, return); + if (!m_currentCommandExecutor) + return; m_error = ErrorInfo(tr("Transformer execution canceled.")); m_currentCommandExecutor->cancel(); } |