totalo commented on code in PR #32776:
URL: https://github.com/apache/shardingsphere/pull/32776#discussion_r1741743671
##########
features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/merge/dal/show/ShowTableStatusMergedResult.java:
##########
@@ -74,10 +74,16 @@ private void merge(final MemoryQueryResultRow row, final
MemoryQueryResultRow ne
}
private BigInteger sum(final Object num1, final Object num2) {
+ if (num1 == null || num2 == null){
+ return BigInteger.ZERO;
Review Comment:
Both are null, return null, one is not null, return the non-null one. Is it
more appropriate?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]