apache/gravitino

[Improvement] Possible null pointer exception in CatalogRegister.java

Open

#4,189 创建于 2024年7月18日

在 GitHub 查看
 (14 评论) (0 反应) (1 负责人)Java (887 fork)auto 404
good first issueimprovement

仓库指标

Star
 (3,058 star)
PR 合并指标
 (PR 指标待抓取)

描述

What would you like to be improved?

In checkCatalogExist, failedException is set to null and then thrown which could cause a NPE if it is not set in the exception block.

How should we improve?

Move throw failedException; to the correct place in the catch block?

贡献者指南