File fix-crash.patch of Package exiv2

diff --git a/src/pentaxmn.cpp b/src/pentaxmn.cpp
index 4fc38be0..31b04b67 100644
--- a/src/pentaxmn.cpp
+++ b/src/pentaxmn.cpp
@@ -1167,6 +1167,8 @@ namespace Exiv2 {
 
     std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata)
     {
+	if ( ! metadata ) return os << "undefined";
+
         ExifData::const_iterator dateIt = metadata->findKey(
                 ExifKey("Exif.PentaxDng.Date"));
         if (dateIt == metadata->end()) {
openSUSE Build Service is sponsored by