Hi Lenny and Apache Shiro community, Thank you for your review and feedback.
Following your suggestion, I have created the corresponding GitHub issue: - Issue Link: https://github.com/apache/shiro/issues/2069 I have also updated the pull request description to reference the issue properly with `fixes #2069`. Please let me know if there is anything else I should adjust. Thank you very much again for your time and support! Best regards, SIMJIYEON93 2025년 4월 5일 (토) 오전 4:13, Lenny Primak <le...@flowlogix.com>님이 작성: > Thanks for your PR. Can you please file the GitHub issue as well? > > We appreciate it. > > > On Apr 4, 2025, at 11:01 AM, 심지연 <9305...@gmail.com> wrote: > > > > Hi Apache Shiro community. > > > > I hope you are doing well. > > > > I have submitted a pull request to fix a potential NullPointerException > > (NPE) in `DefaultLdapRealm#getLdapPrincipal`, where the > > `AuthenticationToken`'s principal could be null. > > Additionally, I updated the JavaDoc to clarify this behavior and added a > > new unit test to verify the fix. > > > > - PR Link: https://github.com/apache/shiro/pull/2066 > > > > **Summary of Changes** > > - Explicitly throw an `AuthenticationException` when the principal is > null > > to prevent unexpected NPEs. > > - Update JavaDocs for `getLdapPrincipal()` and > > `queryForAuthenticationInfo()` to document the behavior clearly. > > - Add a unit test (`testGetLdapPrincipalNullPrincipal`) in > > `DefaultLdapRealmTest.java` to verify the change. > > > > This is a small fix and no JIRA issue was created. > > If necessary, I am happy to create a GitHub issue to formally track it. > > > > I tested the changes locally with `mvn verify` and confirmed that all > tests > > pass. > > > > Thank you very much for reviewing this pull request! 🙏 > > > > Best regards, > > SIMJIYEON93 > >