Unreleased regression - fatal when recording part-payment against a pending contribution (conditions apply)
Our just-merged fix on line item allocation hits an issue when there are no financial items as it turns out.
Per https://github.com/civicrm/civicrm-dev-docs/issues/712 for historical (and perhaps unwise) reasons there are circumstances where line items are created with no financial items. We need to handle that in the payment.create function. I hope to look tomorrow