caltechlibrary / irdmtools

A Go and Python package for working with InvenioRDM repositories.
https://caltechlibrary.github.io/irdmtools
Other
1 stars 1 forks source link

doi2rdm crash #31

Closed tmorrell closed 1 year ago

tmorrell commented 1 year ago

doi2rdm 10.7554/elife.82891

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x1049e3688]

goroutine 1 [running]:
github.com/caltechlibrary/simplified.(*Creator).HasAffiliation(...)
    /Users/rsdoiel/pkg/mod/github.com/caltechlibrary/simplified@v0.0.17-0.20230608210946-31feb8b6399d/simplified.go:616
github.com/caltechlibrary/irdmtools.crossrefPersonToCreator(0x1400030c240, {0x0, 0x0})
    /Users/rsdoiel/src/github.com/caltechlibrary/irdmtools/crossref.go:283 +0x508
github.com/caltechlibrary/irdmtools.getCreators(0x104afb5e0?)
    /Users/rsdoiel/src/github.com/caltechlibrary/irdmtools/crossref.go:325 +0xd4
github.com/caltechlibrary/irdmtools.CrosswalkCrossRefWork(0x140000eccf0?, 0x1400007c280, 0x13?, 0x1049fdded?)
    /Users/rsdoiel/src/github.com/caltechlibrary/irdmtools/crossref.go:471 +0x284
github.com/caltechlibrary/irdmtools.(*Doi2Rdm).Run(0x140000f5d90, {0x140000be010?, 0x14000016463?}, {0x104b55a18, 0x140000b4008}, {0x104a0189f?, 0x21?}, 0x0?, {0x16b867690, 0x13})
    /Users/rsdoiel/src/github.com/caltechlibrary/irdmtools/doi2rdm.go:221 +0x664
main.main()
    /Users/rsdoiel/src/github.com/caltechlibrary/irdmtools/cmd/doi2rdm/doi2rdm.go:188 +0x9d0
tmorrell commented 1 year ago

10.7554/elife.81453 has it as well

rsdoiel commented 1 year ago

Fixed in upcoming release v0.0.20.