Skip to content

Commit

Permalink
check if exifdata is not null
Browse files Browse the repository at this point in the history
(cherry picked from commit 9e46ae3)
  • Loading branch information
norbertwg authored and kmilos committed May 17, 2024
1 parent 8e64e6f commit 0630d09
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 @@ -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
Expand Down

0 comments on commit 0630d09

Please sign in to comment.