diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 11:00:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 11:31:13 +0000 |
commit | 8245c5fe1e06f78d2a2ea9d407dbc1b8eaa63cd7 (patch) | |
tree | 210f1f8ef4a77879d5eaa4e0703595877a2cf46b /hwpfilter/source/hwpfile.cxx | |
parent | 80592d9786881e650413c4669ab1b0abb78d5f10 (diff) |
CID#982607 using invalid iterator
Change-Id: Ic57140eab3c93e68a8455e5b9975154f76166473
Diffstat (limited to 'hwpfilter/source/hwpfile.cxx')
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index 48d2f37d66e8..b6d3657bf6c6 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -505,7 +505,7 @@ HeaderFooter *HWPFile::getHeaderFooter(int index) break; } - return *it; + return it != headerfooters.end() ? *it : NULL; } ShowPageNum *HWPFile::getPageNumber(int index) |