My Products
Help
omelhus
PARTNER

Missing null guards in joins?

by omelhus

Hey,

 

Sometimes I'm getting "Object reference not set to an instance of an object." errors from the API when what I expect is just the object to be null. Are you missing a guard for null on joinups?

 

Trace id: 000000000000000015f05ba59be689c9

 

This is a minimal version of my failing query:

 

 

query payment_object_ref_null($cid: Int) {
  useCompany(no: $cid) {
    payment {
      items {
        paymentNo
        lines: joindown_PaymentLine_via_Payment {
          items {
            currency: joinup_Currency {
              currencyNo
              bank: joinup_Bank {
                name
                currency: joinup_Currency {
                  currencyNo
                }
              }
            }
          }
        }
      }
    }
  }
}

 

 

 

2 REPLIES 2
Accepted solution
Marius Bancila
VISMA

by Marius Bancila

This problem has been fixed and will be rolled to production this Thursday.

by Marius Bancila

Thank you for reporting. Will be looking into it.