Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2103

NPE validating transformation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.5
    • 8.5
    • Transformations
    • None

    Description

      Think this one was obvious... the "result" value is actually not returned.

      org.teiid.runtime.client.Constant
          @Override
          public int hashCode() {
              final int prime = 31;
              int result = super.hashCode();
      
              if(this.value != null && !isMultiValued()) {
                  if (this.value instanceof BigDecimal) {
                      BigDecimal bd = (BigDecimal)this.value;
                      int xsign = bd.signum();
                      if (xsign == 0)
                          return 0;
                      bd = bd.stripTrailingZeros();
                      result =  prime * result + bd.hashCode();
                  }
      
                  result = prime * result + this.value.hashCode();
              }
      
              return this.value.hashCode();
          }
      

      Attachments

        Activity

          People

            parichar@redhat.com Paul Richardson
            blafond Barry LaFond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: