From 76e02b7fbf57af81446b4449bd5bc3ed4349a923 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 19 Dec 2013 11:01:30 +0000 Subject: CID#982608 using invalid iterator Change-Id: I0075323a75ea7c8af9738ab3ff9a0c9e2d1346d7 --- hwpfilter/source/hwpfile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hwpfilter') diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index b6d3657bf6c6..bf66ca288870 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -530,7 +530,7 @@ Table *HWPFile::getTable(int index) break; } - return *it; + return it != tables.end() ? *it : NULL; } void HWPFile::AddParaShape(ParaShape * pshape) -- cgit v1.2.3