diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 15:57:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 20:08:24 +0000 |
commit | 2fa807929fe6e5bfd658eb24989c314907ddb014 (patch) | |
tree | 77e08c7f19e1faca5b12f40dee0a7937bd0c6712 /vcl/unx | |
parent | d5ffe20b47b63cb82740598ede83a3951db1b178 (diff) |
coverity#735998 Dereference after null check
Change-Id: I882bcb2cdde8697ffb5272fd80e2fd602ed54743
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk/a11y/atktext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/a11y/atktext.cxx b/vcl/unx/gtk/a11y/atktext.cxx index a11e4abca878..c90a9447c78d 100644 --- a/vcl/unx/gtk/a11y/atktext.cxx +++ b/vcl/unx/gtk/a11y/atktext.cxx @@ -562,7 +562,7 @@ text_wrapper_get_run_attributes( AtkText *text, if( pTextMarkup ) { // Get attribute run here if it hasn't been done before - if( !bOffsetsAreValid ) + if (!bOffsetsAreValid && pText) { accessibility::TextSegment aAttributeTextSegment = pText->getTextAtIndex(offset, accessibility::AccessibleTextType::ATTRIBUTE_RUN); |