Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: panic: assignment to entry in nil map #147

Merged
merged 2 commits into from
Nov 20, 2019
Merged

Fix: panic: assignment to entry in nil map #147

merged 2 commits into from
Nov 20, 2019

Conversation

k1LoW
Copy link
Owner

@k1LoW k1LoW commented Nov 20, 2019

panic: assignment to entry in nil map

goroutine 1 [running]:
github.com/k1LoW/tbls/output/config.(*Config).OutputSchema(0xc0000d8860, 0x4bf39e0, 0xc0000d8868, 0xc0005b54a0, 0x0, 0x0)
        /Users/k1low/src/github.com/k1LoW/tbls/output/config/config.go:46 +0xbe7
github.com/k1LoW/tbls/cmd.glob..func4(0x5276e00, 0xc000049180, 0x0, 0x4)
        /Users/k1low/src/github.com/k1LoW/tbls/cmd/out.go:122 +0x22e
github.com/spf13/cobra.(*Command).execute(0x5276e00, 0xc000049140, 0x4, 0x4, 0x5276e00, 0xc000049140)
        /Users/k1low/go/pkg/mod/github.com/spf13/[email protected]/command.go:830 +0x2aa
github.com/spf13/cobra.(*Command).ExecuteC(0x5277080, 0x0, 0x0, 0x0)
        /Users/k1low/go/pkg/mod/github.com/spf13/[email protected]/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/k1low/go/pkg/mod/github.com/spf13/[email protected]/command.go:864
github.com/k1LoW/tbls/cmd.Execute()
        /Users/k1low/src/github.com/k1LoW/tbls/cmd/root.go:59 +0x2d
main.main()
        /Users/k1low/src/github.com/k1LoW/tbls/main.go:33 +0x20
make: *** [db/doc] Error 2

@k1LoW k1LoW added the bug Something isn't working label Nov 20, 2019
@k1LoW k1LoW self-assigned this Nov 20, 2019
@codecov
Copy link

codecov bot commented Nov 20, 2019

Codecov Report

Merging #147 into master will decrease coverage by 1.21%.
The diff coverage is 9.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #147      +/-   ##
==========================================
- Coverage   70.06%   68.85%   -1.22%     
==========================================
  Files          13       13              
  Lines        2789     2793       +4     
==========================================
- Hits         1954     1923      -31     
- Misses        638      679      +41     
+ Partials      197      191       -6
Impacted Files Coverage Δ
output/config/config.go 48.33% <9.09%> (-3.46%) ⬇️
datasource/datasource.go 20.85% <0%> (-19.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 480f4dd...04b0219. Read the comment docs.

@k1LoW k1LoW merged commit b3b7fe5 into master Nov 20, 2019
@k1LoW k1LoW deleted the fix-nil-map branch November 20, 2019 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant