Details
Description
In updateStatistics(), when calling statistics.sample(), it is assumed that the client is not null. However, it could happen that the client is null, and there should be a guard to avoid the NPE.
In updateStatistics(), when calling statistics.sample(), it is assumed that the client is not null. However, it could happen that the client is null, and there should be a guard to avoid the NPE.
Added guard.