Skip to content

Commit 9e46ae3

Browse files
norbertwgkmilos
authored andcommitted
check if exifdata is not null
1 parent b1b9e74 commit 9e46ae3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/canonmn_int.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2822,6 +2822,10 @@ std::ostream& CanonMakerNote::print0x000a(std::ostream& os, const Value& value,
28222822
std::ostream& CanonMakerNote::print0x000c(std::ostream& os, const Value& value, const ExifData* exifData) {
28232823
std::istringstream is(value.toString());
28242824

2825+
if (!exifData) {
2826+
return os << value;
2827+
}
2828+
28252829
ExifKey key("Exif.Canon.ModelID");
28262830
auto pos = exifData->findKey(key);
28272831
// if model is EOS D30

0 commit comments

Comments
 (0)