Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3413

Ineffective null check in LiteralExpression#newConstant()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.9.1
    • 4.15.0, 5.1.0, 4.14.2
    • None
    • None

    Description

              if (maxLength == null) {
                  maxLength = type == null || !type.isFixedWidth() ? null : type.getMaxLength(value);
              }
      

      The null check for type is ineffective - type is de-referenced in various places prior to the above check.

      Attachments

        1. PHOENIX-3413.patch
          2 kB
          Kevin Liew
        2. PHOENIX-3413.3.patch
          2 kB
          Kevin Liew
        3. PHOENIX-3413.2.patch
          2 kB
          Kevin Liew

        Activity

          People

            kliew Kevin Liew
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: