You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "bd2019us (JIRA)" <ji...@apache.org> on 2019/04/14 03:30:00 UTC

[jira] [Created] (GERONIMO-6721) Change String.equals to Objects.equals(String,String) to avoid possible NullPointerException

bd2019us created GERONIMO-6721:
----------------------------------

             Summary: Change String.equals to Objects.equals(String,String) to avoid possible NullPointerException
                 Key: GERONIMO-6721
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6721
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
            Reporter: bd2019us


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)