Kaydet (Commit) b4b35f65 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1340230 Dereference before null check

ah!, the original code had a type in it. That's
why it was refactored to remove the null check.

Now a proper fix for cids: 1326180<->1326190

Change-Id: Iba7fd47c03eb5c157f878e0e297e8688f20ae348
(cherry picked from commit 8244fc26)
Reviewed-on: https://gerrit.libreoffice.org/20179Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 3b3ef6ab
...@@ -621,7 +621,7 @@ public class AnyConverter ...@@ -621,7 +621,7 @@ public class AnyConverter
break; break;
case TypeClass.ENUM_value: case TypeClass.ENUM_value:
if (tc == TypeClass.ENUM_value && if (tc == TypeClass.ENUM_value &&
(null == destTClass || destType.equals( type ) /* optional destType */)) (null == destType || destType.equals( type ) /* optional destType */))
{ {
return object; return object;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment