Index: poppler/TextOutputDev.cc =================================================================== RCS file: /cvs/poppler/poppler/poppler/TextOutputDev.cc,v retrieving revision 1.6.2.4 diff -u -B -p -r1.6.2.4 TextOutputDev.cc --- poppler/TextOutputDev.cc 24 Aug 2005 18:17:51 -0000 1.6.2.4 +++ poppler/TextOutputDev.cc 9 Sep 2005 02:16:38 -0000 @@ -3431,6 +3431,8 @@ void TextBlock::visitSelection(TextSelec visitor->visitBlock (this, begin, end, selection); for (p = begin; p != end; p = p->next) { + if (!p) + break; if (p == begin) { child_selection.x1 = start_x; child_selection.y1 = start_y;