Benedikt Ritter created LANG-1131:
-------------------------------------

             Summary: StrBuilder.equals(StrBuilder) doesn't check for null 
inputs
                 Key: LANG-1131
                 URL: https://issues.apache.org/jira/browse/LANG-1131
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.text.*
            Reporter: Benedikt Ritter
             Fix For: 3.5


The following test will fail because the {{equals(StrBuilder)}} overload in 
{{StrBuilder}} does not check for null inputs:

{code:java}
    @Test
    public void testEqualsWithNullStrBuilder() throws Exception {
        final StrBuilder sb = new StrBuilder();
        final StrBuilder other = null;
        assertFalse(sb.equals(other));
    }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to