apache/gravitino
Voir sur GitHub[Improvement] Possible null pointer exception in CatalogRegister.java
Open
#4 189 ouverte le 18 juil. 2024
good first issueimprovement
Métriques du dépôt
- Stars
- (3 058 stars)
- Métriques de merge PR
- (Métriques PR en attente)
Description
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?