diff options
| author | 2019-07-25 22:29:20 +0200 | |
|---|---|---|
| committer | 2019-07-25 22:29:20 +0200 | |
| commit | 8b04d886845be5c3b57caae4d96b53133c51ab14 (patch) | |
| tree | 0c22e33e8f9246b38dd1cac901b0ea11fc19ca07 /operationcondition.cpp | |
| parent | 611aa0defd63ebc3b4e3d16a86c495a9af120728 (diff) | |
| download | OneRoll-8b04d886845be5c3b57caae4d96b53133c51ab14.tar.gz OneRoll-8b04d886845be5c3b57caae4d96b53133c51ab14.zip | |
Fix crash found by afl
Diffstat (limited to 'operationcondition.cpp')
| -rw-r--r-- | operationcondition.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/operationcondition.cpp b/operationcondition.cpp index 67b10fc..507416d 100644 --- a/operationcondition.cpp +++ b/operationcondition.cpp @@ -41,6 +41,10 @@ void OperationCondition::setBoolean(BooleanCondition* boolean) qint64 OperationCondition::hasValid(Die* b, bool recursive, bool unhighlight) const { + if(nullptr == m_boolean) + { + return 0; + } QList<qint64> listValues; if(recursive) { |