yyqdbngt opened a new pull request, #1491: URL: https://github.com/apache/rocketmq-dashboard/pull/1491
### Problem A partially populated Lite Topic quota can have configured maximums while its current topic or session counters are still unset. The usage and remaining-quota accessors unboxed those null counters and threw `NullPointerException`, which can break API serialization. ### Fix Treat unset current counters as zero when calculating topic usage, session usage, and remaining topic quota. ### Verification `mvn -B -ntp -Dmaven.compiler.proc=full -Dtest=LiteTopicQuotaTest test` Tests run: 3, failures: 0, errors: 0. -- 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]
