Commit 58721e7eea5e920eb70aeee5f6e9cd657da1c77b
1 parent
e9d3ee93
Fix a crash in br -objects
Check for a NULL transform in CacheTransform::init How can you doubt me?
Showing
1 changed file
with
2 additions
and
0 deletions
openbr/plugins/meta.cpp
| @@ -418,6 +418,8 @@ public: | @@ -418,6 +418,8 @@ public: | ||
| 418 | private: | 418 | private: |
| 419 | void init() | 419 | void init() |
| 420 | { | 420 | { |
| 421 | + if (!transform) return; | ||
| 422 | + | ||
| 421 | trainable = transform->trainable; | 423 | trainable = transform->trainable; |
| 422 | if (!cache.isEmpty()) return; | 424 | if (!cache.isEmpty()) return; |
| 423 | 425 |