Skip to content
Snippets Groups Projects
Commit 62e5839d authored by ilor's avatar ilor
Browse files

fix crash bug in iob-chan writer

parent 27e5a477
Branches
No related merge requests found
......@@ -60,7 +60,7 @@ void IobChanWriter::write_token(const Token& t)
void IobChanWriter::write_sentence(const Sentence& s)
{
const AnnotatedSentence* ann = dynamic_cast<const AnnotatedSentence*>(&s);
if (force_) {
if (ann && force_) {
// I sincerely apologize
AnnotatedSentence* hax = const_cast<AnnotatedSentence*>(ann);
foreach(const AnnotatedSentence::chan_map_t::value_type& v, hax->all_channels()) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment