ezgliding / goigc

Package igc provides means to parse and analyse files in the IGC format
Apache License 2.0
19 stars 8 forks source link

panic: runtime error: index out of range [0] with length 0 #53

Closed rochaporto closed 4 years ago

rochaporto commented 4 years ago

goroutine 1 [running]:
github.com/ezgliding/goigc/pkg/igc.(*Track).Phases(0xc00011b928, 0x29, 0x0, 0x0, 0x0, 0x0)
    /home/ricardo/ws/ezgliding/goigc/pkg/igc/phase.go:89 +0x8da
main.glob..func2(0xc22100, 0xc000092f30, 0x1, 0x1, 0x0, 0x0)
    /home/ricardo/ws/ezgliding/goigc/cmd/goigc/phases.go:52 +0xb7
github.com/spf13/cobra.(*Command).execute(0xc22100, 0xc000092f10, 0x1, 0x1, 0xc22100, 0xc000092f10)
    /home/ricardo/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:826 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0xc22380, 0x8b98d7, 0x17, 0xc0000ba200)
    /home/ricardo/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
    /home/ricardo/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
main.Execute()
    /home/ricardo/ws/ezgliding/goigc/cmd/goigc/root.go:41 +0x31
main.main()
    /home/ricardo/ws/ezgliding/goigc/cmd/goigc/root.go:51 +0x49

Seen on netcoupe flight db 2016, flight 1713.