1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-04 12:58:39 -04:00

cmd/ofx: check for nil Currency fields in transactions

This commit is contained in:
Martin Habbecke
2021-10-17 12:21:46 -07:00
parent 31229399a0
commit 3d84740a05
3 changed files with 3 additions and 7 deletions

View File

@ -60,7 +60,7 @@ func ccTransactions() {
fmt.Println("Transactions:")
for _, tran := range stmt.BankTranList.Transactions {
currency := stmt.CurDef
if ok, _ := tran.Currency.Valid(); ok {
if tran.Currency != nil {
currency = tran.Currency.CurSym
}