Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

GERONIMO-6721 Use Objects.equals(String,String) to avoid possible NullPointerException#3

Open
bd2019us wants to merge 1 commit intoapache:trunkfrom
bd2019us:GERONIMO-6721
Open

GERONIMO-6721 Use Objects.equals(String,String) to avoid possible NullPointerException#3
bd2019us wants to merge 1 commit intoapache:trunkfrom
bd2019us:GERONIMO-6721

Conversation

@bd2019us
Copy link

Hello,
I found that the String "mode" may cause potential risk of NullPointerException since the method "getParameter" may return a null value. One recommended API is Objects.equals(String,String) which can avoid this exception.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant