Kaydet (Commit) 8244fc26 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
üst 378f500b
...@@ -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