diff --git a/modules/io/src/mol/mmcif_reader.cc b/modules/io/src/mol/mmcif_reader.cc index d6af7a25800df040c52d0d111dfb44ba993eadd8..a4c9ca313f3dcdeb5f1434884cb57c00d72ab9df 100644 --- a/modules/io/src/mol/mmcif_reader.cc +++ b/modules/io/src/mol/mmcif_reader.cc @@ -799,7 +799,7 @@ void MMCifReader::ParseCitation(const std::vector<StringRef>& columns) } } if (indices_[PDBX_DATABASE_ID_PUBMED] != -1) { - if (columns[indices_[PDBX_DATABASE_ID_PUBMED]][0]!='?') { + if (!is_undef(columns[indices_[PDBX_DATABASE_ID_PUBMED]])) { cit.SetPubMed(this->TryGetInt(columns[indices_[PDBX_DATABASE_ID_PUBMED]], "citation.pdbx_database_id_PubMed")); } @@ -1085,7 +1085,7 @@ void MMCifReader::ParseStruct(const std::vector<StringRef>& columns) } if (indices_[PDBX_FORMULA_WEIGHT] != -1) { - if (columns[indices_[PDBX_FORMULA_WEIGHT]][0] != '?') { + if (!is_undef(columns[indices_[PDBX_FORMULA_WEIGHT]])) { details.SetMass(this->TryGetReal(columns[indices_[PDBX_FORMULA_WEIGHT]], "struct.pdbx_formula_weight")); }