check if exifdata is not null

main
norbertwg 1 year ago committed by Miloš Komarčević
parent b1b9e74df8
commit 9e46ae31b1

@ -2822,6 +2822,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::ostream& CanonMakerNote::print0x000c(std::ostream& os, const Value& value, const ExifData* exifData) {
std::istringstream is(value.toString()); std::istringstream is(value.toString());
if (!exifData) {
return os << value;
}
ExifKey key("Exif.Canon.ModelID"); ExifKey key("Exif.Canon.ModelID");
auto pos = exifData->findKey(key); auto pos = exifData->findKey(key);
// if model is EOS D30 // if model is EOS D30

Loading…
Cancel
Save