apache/gravitino

[Improvement] Possible null pointer exception in CatalogRegister.java

Open

#4189 aperta il 18 lug 2024

Vedi su GitHub
 (14 commenti) (0 reazioni) (1 assegnatario)Java (887 fork)auto 404
good first issueimprovement

Metriche repository

Star
 (3058 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?

Guida contributor