diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 10:59:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 11:31:12 +0000 |
commit | 8070d5666177ee2262b54247e5d164128d606c3b (patch) | |
tree | 41fd635870eca82c0627bf397aad14dce31b9f56 /hwpfilter | |
parent | f21ed26fc57251dacfcd9b0518f24e539aa1ce26 (diff) |
CID#982605 using invalid iterator
Change-Id: Ia2413a7040124b0c27ca7a3dbaaa5f222395aba8
Diffstat (limited to 'hwpfilter')
-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 04c72cb7b9d2..1a7940db9573 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -455,7 +455,7 @@ ParaShape *HWPFile::getParaShape(int index) break; } - return *it; + return it != pslist.end() ? *it : NULL; } |