apache/gravitino
在 GitHub 查看[Improvement] Possible null pointer exception in CatalogRegister.java
Open
#4,189 创建于 2024年7月18日
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?