Commit 58721e7eea5e920eb70aeee5f6e9cd657da1c77b

Authored by Charles Otto
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 418 private:
419 419 void init()
420 420 {
  421 + if (!transform) return;
  422 +
421 423 trainable = transform->trainable;
422 424 if (!cache.isEmpty()) return;
423 425  
... ...