HBASE-23244 NPEs running Canary (#784)

Addendum to fix findbugs complaint.
This commit is contained in:
stack 2019-11-02 09:33:48 -07:00
parent c58e80fbe6
commit 3ccfd50bd9
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ public class CanaryTool implements Tool, Canary {
sink.publishReadTiming(serverName, region, column, stopWatch.getTime());
} catch (Exception e) {
sink.publishReadFailure(serverName, region, column, e);
sink.updateReadFailures(region == null? "NULL": region.getRegionNameAsString(),
sink.updateReadFailures(region.getRegionNameAsString(),
serverName == null? "NULL": serverName.getHostname());
} finally {
if (rs != null) {