Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2910

Ineffective null check for replicationSources in Mutation#write()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.0
    • replication
    • None

    Description

          if (!replicationSources.isEmpty()) {
            // Use 2nd least-significant bit for whether or not we have replication sources
            hasValues = (byte) (0x02 | hasValues);
          }
      ...
          if (0x02 == (0x02 & hasValues)) {
            if (null == replicationSources) {
      

      The null check in 'if (0x02' block is ineffective - replicationSources was dereferenced earlier.

      Attachments

        Activity

          People

            elserj Josh Elser
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: