Ted Yu created ACCUMULO-2738:
--------------------------------

             Summary: Potential null pointer reference in 
ConfigCommand#execute()
                 Key: ACCUMULO-2738
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2738
             Project: Accumulo
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Starting at line 210 :
{code}
        if (dfault != null && key.toLowerCase().contains("password")) {
          siteVal = sysVal = dfault = curVal = curVal.replaceAll(".", "*");
        }
        if (sysVal != null) {
          if (defaults.containsKey(key) && 
!Property.getPropertyByKey(key).isExperimental()) {
            printConfLine(output, "default", key, dfault);
{code}
Comparing dfault with null implies that dfault may be null.
If that is the case, we would get null pointer dereference in the call to 
printConfLine() at line 215 where dfault.replace() is called.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to