interledger-deprecated / ilp-core

Core ILP module — handles ledger abstraction and quoting
Other
8 stars 5 forks source link

TypeError can be thrown as "headHop" might be null or undefined #68

Open BillHodghead opened 8 years ago

BillHodghead commented 8 years ago

TypeError can be thrown as "headHop" might be null or undefined in src/lib/core.js, on line 146

const tailQuote = yield sourceClient._getQuote(intermediateConnector, omitUndefined({
  source_address: intermediateConnector,
  source_amount: query.sourceAmount === undefined
    ? undefined
    : (yield this._roundDown(**headHop**.destinationLedger, headHop.destinationAmount)),