diff --git a/src/canonmn_int.cpp b/src/canonmn_int.cpp index e244bedbcc..84e365e01f 100644 --- a/src/canonmn_int.cpp +++ b/src/canonmn_int.cpp @@ -2641,6 +2641,10 @@ std::ostream& CanonMakerNote::print0x000a(std::ostream& os, const Value& value, std::ostream& CanonMakerNote::print0x000c(std::ostream& os, const Value& value, const ExifData* exifData) { std::istringstream is(value.toString()); + if (!exifData) { + return os << value; + } + ExifKey key("Exif.Canon.ModelID"); auto pos = exifData->findKey(key); // if model is EOS D30