Skip to content

Commit

Permalink
extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 19, 2024
1 parent bf3bc15 commit b6ad074
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/folia_provenance.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ namespace folia {
throw XmlError( "processor: invalid attribute(s) in meta tag" );
}
string value = TiCC::TextValue( n );
if ( value.empty() ){
throw XmlError( "processor: empty id" );
}
main->_metadata[id] = value;
}
n = n->next;
Expand Down

0 comments on commit b6ad074

Please sign in to comment.