nil pointer when specifying `deadline` in issue fields list #387

Closed
opened 4 months ago by stevegt · 1 comments
stevegt commented 4 months ago

Is anyone else getting this or is it just me?

$ tea i ls -f index,title,deadline 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc55c9a]

goroutine 1 [running]:
code.gitea.io/tea/modules/print.printableIssue.FormatField(0xc000454000, 0xc00059e1a8, 0x7fff1d1e7ac0, 0x8, 0xc000028450, 0x24)
        /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/modules/print/issue.go:104 +0x51a
code.gitea.io/tea/modules/print.tableFromItems(0xc00088fce0, 0x3, 0x3, 0xc00000c1e0, 0x1e, 0x1e, 0x0, 0x0, 0x0, 0x0, ...)
        /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/modules/print/table.go:36 +0x283
code.gitea.io/tea/modules/print.printIssues(0xc000648160, 0x1e, 0x2a, 0x0, 0x0, 0xc00088fce0, 0x3, 0x3)
        /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/modules/print/issue.go:69 +0x3aa
code.gitea.io/tea/modules/print.IssuesPullsList(...)
        /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/modules/print/issue.go:29
code.gitea.io/tea/cmd/issues.RunIssuesList(0xc00059bb80, 0x9, 0x10)
        /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/cmd/issues/list.go:60 +0x2fe
github.com/urfave/cli/v2.(*Command).Run(0x1769200, 0xc00059b700, 0x0, 0x0)
        /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 +0x4dd
github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc000371040, 0xc00059b180, 0x0, 0x0)
        /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434 +0xa49
github.com/urfave/cli/v2.(*Command).startApp(0x1768240, 0xc00059b180, 0x7fff1d1e7aac, 0x1)
        /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 +0x69b
github.com/urfave/cli/v2.(*Command).Run(0x1768240, 0xc00059b180, 0x0, 0x0)
        /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94 +0x98d
github.com/urfave/cli/v2.(*App).RunContext(0xc000370ea0, 0x12c2170, 0xc0000b2010, 0xc0000ba000, 0x5, 0x5, 0x0, 0x0)
        /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 +0x810
github.com/urfave/cli/v2.(*App).Run(...)
        /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224
main.main()
        /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/main.go:53 +0x278
Is anyone else getting this or is it just me? ``` $ tea i ls -f index,title,deadline panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc55c9a] goroutine 1 [running]: code.gitea.io/tea/modules/print.printableIssue.FormatField(0xc000454000, 0xc00059e1a8, 0x7fff1d1e7ac0, 0x8, 0xc000028450, 0x24) /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/modules/print/issue.go:104 +0x51a code.gitea.io/tea/modules/print.tableFromItems(0xc00088fce0, 0x3, 0x3, 0xc00000c1e0, 0x1e, 0x1e, 0x0, 0x0, 0x0, 0x0, ...) /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/modules/print/table.go:36 +0x283 code.gitea.io/tea/modules/print.printIssues(0xc000648160, 0x1e, 0x2a, 0x0, 0x0, 0xc00088fce0, 0x3, 0x3) /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/modules/print/issue.go:69 +0x3aa code.gitea.io/tea/modules/print.IssuesPullsList(...) /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/modules/print/issue.go:29 code.gitea.io/tea/cmd/issues.RunIssuesList(0xc00059bb80, 0x9, 0x10) /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/cmd/issues/list.go:60 +0x2fe github.com/urfave/cli/v2.(*Command).Run(0x1769200, 0xc00059b700, 0x0, 0x0) /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 +0x4dd github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc000371040, 0xc00059b180, 0x0, 0x0) /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434 +0xa49 github.com/urfave/cli/v2.(*Command).startApp(0x1768240, 0xc00059b180, 0x7fff1d1e7aac, 0x1) /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 +0x69b github.com/urfave/cli/v2.(*Command).Run(0x1768240, 0xc00059b180, 0x0, 0x0) /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94 +0x98d github.com/urfave/cli/v2.(*App).RunContext(0xc000370ea0, 0x12c2170, 0xc0000b2010, 0xc0000ba000, 0x5, 0x5, 0x0, 0x0) /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 +0x810 github.com/urfave/cli/v2.(*App).Run(...) /home/stevegt/go/1.16.3/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224 main.main() /home/stevegt/go/1.16.3/pkg/mod/code.gitea.io/tea@v0.7.0/main.go:53 +0x278 ```
stevegt changed title from nil pointer when specifying deadline in issue fields list to nil pointer when specifying `deadline` in issue fields list 4 months ago
Poster

Also verified on latest master pull as of commit 4b9907fb54.

Also verified on latest master pull as of commit 4b9907fb54d5d2a373e1ed14fba74db0ac27d942.
lunny added the
kind/bug
label 4 months ago
noerw added this to the v0.8.0 milestone 4 months ago
6543 closed this issue 3 months ago
6543 referenced this issue from a commit 3 months ago
Sign in to join this conversation.
Loading…
There is no content yet.