Nil pointer when getting context's flagSet in UsageError function. #1325
Labels
area/v2
relates to / is being considered for v2
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
my urfave/cli version is
v2.3.0
Checklist
Dependency Management
Describe the bug
When I try to get flag from UsageError function, program panic because cli.Context's flagSet is a nil pointer.
To reproduce
Observed behavior
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x114b8aa]
Expected behavior
I expect cli.Context can Lineage correctly and find flag I need.
Additional context
Want to fix this yourself?
We'd love to have more contributors on this project! If the fix for this bug is easily explained and very small, free free to create a pull request for it.
Run
go version
and paste its output hereRun
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: