mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Add a non-null filter to avoid an NPE if a null logPair ever gets in
This commit is contained in:
@ -79,7 +79,7 @@ public class LogPair
|
|||||||
}
|
}
|
||||||
else if(value instanceof LogPair[] subLogPairs)
|
else if(value instanceof LogPair[] subLogPairs)
|
||||||
{
|
{
|
||||||
String subLogPairsString = Arrays.stream(subLogPairs).map(LogPair::toString).collect(Collectors.joining(","));
|
String subLogPairsString = Arrays.stream(subLogPairs).filter(Objects::nonNull).map(LogPair::toString).collect(Collectors.joining(","));
|
||||||
valueString = '{' + subLogPairsString + '}';
|
valueString = '{' + subLogPairsString + '}';
|
||||||
}
|
}
|
||||||
else if(value instanceof UnsafeSupplier<?, ?> us)
|
else if(value instanceof UnsafeSupplier<?, ?> us)
|
||||||
|
Reference in New Issue
Block a user