Skip to content

Commit

Permalink
check if exifdata is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertwg authored and kmilos committed May 17, 2024
1 parent b1b9e74 commit 9e46ae3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/canonmn_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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::istringstream is(value.toString());

if (!exifData) {
return os << value;
}

ExifKey key("Exif.Canon.ModelID");
auto pos = exifData->findKey(key);
// if model is EOS D30
Expand Down

0 comments on commit 9e46ae3

Please sign in to comment.