Make useOrWrap null input give null output

This commit is contained in:
2023-06-27 12:25:10 -05:00
parent a056c4618c
commit a62a1f10cd
2 changed files with 14 additions and 0 deletions

View File

@ -570,6 +570,11 @@ public class CollectionUtils
{
try
{
if(collection == null)
{
return (null);
}
Class<T> targetClass = (Class<T>) typeToken.getRawType();
if(targetClass.isInstance(collection))
{
@ -602,6 +607,11 @@ public class CollectionUtils
{
try
{
if(collection == null)
{
return (null);
}
Class<T> targetClass = (Class<T>) typeToken.getRawType();
if(targetClass.isInstance(collection))
{