diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-25 15:09:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-25 15:45:58 +0000 |
commit | 8244fc2655e37f178f32d63133edf08def8f62c8 (patch) | |
tree | 1c1265462addb2e512957a5222fbbe1c30079bb9 /jurt/com/sun/star/uno | |
parent | 378f500bf64e96a92132fe5f965a6503db416183 (diff) |
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
Diffstat (limited to 'jurt/com/sun/star/uno')
-rw-r--r-- | jurt/com/sun/star/uno/AnyConverter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jurt/com/sun/star/uno/AnyConverter.java b/jurt/com/sun/star/uno/AnyConverter.java index 61c8c7e95180..94542e6e9885 100644 --- a/jurt/com/sun/star/uno/AnyConverter.java +++ b/jurt/com/sun/star/uno/AnyConverter.java @@ -621,7 +621,7 @@ public class AnyConverter break; case TypeClass.ENUM_value: if (tc == TypeClass.ENUM_value && - (null == destTClass || destType.equals( type ) /* optional destType */)) + (null == destType || destType.equals( type ) /* optional destType */)) { return object; } |