diff options
Diffstat (limited to 'XMPFiles/source/NativeMetadataSupport/IMetadata.h')
-rw-r--r-- | XMPFiles/source/NativeMetadataSupport/IMetadata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/XMPFiles/source/NativeMetadataSupport/IMetadata.h b/XMPFiles/source/NativeMetadataSupport/IMetadata.h index b85239b..608d4a2 100644 --- a/XMPFiles/source/NativeMetadataSupport/IMetadata.h +++ b/XMPFiles/source/NativeMetadataSupport/IMetadata.h @@ -237,7 +237,7 @@ template<class T> void IMetadata::setValue( XMP_Uns32 id, const T& value ) // // check if the value is "empty" // - if( this->isEmptyValue( id, *valueObj ) ) + if( valueObj == NULL || this->isEmptyValue( id, *valueObj ) ) { // // value is "empty", delete it |