diff --git a/src/libFLAC++/metadata.cpp b/src/libFLAC++/metadata.cpp index 6cb1ce64..374e5b31 100644 --- a/src/libFLAC++/metadata.cpp +++ b/src/libFLAC++/metadata.cpp @@ -55,6 +55,9 @@ namespace FLAC { Prototype *construct_block(::FLAC__StreamMetadata *object) { + if (0 == object) + return 0; + Prototype *ret = 0; switch(object->type) { case FLAC__METADATA_TYPE_STREAMINFO: