Skip to content
Snippets Groups Projects
Commit b7784f61 authored by cramakri's avatar cramakri
Browse files

LMS-1767 Made the reflection string traverser more robust.

SVN: 18624
parent b6fb87a7
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,10 @@ public class ReflectionStringTraverser
for (int index = 0; index < length; ++index)
{
Object element = Array.get(array, index);
if (element == null)
{
continue;
}
if (isString(element))
{
visitStringArrayElement(array, index, element, componentType);
......@@ -310,6 +314,10 @@ public class ReflectionStringTraverser
private static boolean isStringCollection(Collection<?> collection)
{
if (collection.isEmpty())
{
return false;
}
Class<?> elementClass = figureElementClass(collection);
return isStringClass(elementClass);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment