Skip to content

Commit

Permalink
Merge branch 'Issue1474'
Browse files Browse the repository at this point in the history
* Issue1474:
  Fix potential null pointer dereference in ccmain/paragraphs.cpp.
  • Loading branch information
zdenop committed May 22, 2015
2 parents e4136f2 + d8a55d7 commit b1b0257
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ccmain/paragraphs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2400,8 +2400,11 @@ void InitializeTextAndBoxesPreRecognition(const MutableIterator &it,
}
word_res = page_res_it.forward();
} while (page_res_it.row() == this_row);
info->lword_box = lword->word->bounding_box();
info->rword_box = rword->word->bounding_box();

if(lword)
info->lword_box = lword->word->bounding_box();
if(rword)
info->rword_box = rword->word->bounding_box();
}


Expand Down

0 comments on commit b1b0257

Please sign in to comment.