Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2871

Ineffective null check in SegmentRange

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • v2.2.0
    • None
    • None

    Description

      For Endpoint#getComparator() :

                          } else if (b.isMax) {
                              return a.isMax ? 0 : -1;
                          } else {
                              if (a == null || b == null)
                                  throw new IllegalStateException();
      

      The null check should be placed in the front.

      Attachments

        Activity

          People

            liveandevil Shengping
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: