github-actions[bot] opened a new pull request, #4418: URL: https://github.com/apache/gravitino/pull/4418
Title: [#4331] fix: add null check for parentContext in UserContext ### What changes were proposed in this pull request? This pull request adds a null check for the parentContext variable in the getUserContext method of UserContext.java. This ensures that a NullPointerException is avoided when deepCopy() is called on parentContext. ### Why are the changes needed? The change is needed to prevent a potential NullPointerException if parentContext is null. Adding this check makes the code more reliable. Fix: #4331 ### Does this PR introduce _any_ user-facing change? No, this change does not introduce any user-facing changes. ### How was this patch tested? The change was reviewed to ensure that the null check effectively prevents the issue. No new tests were needed, as this is a preventive fix. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
