Description
Preflight Checklist
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
- I am not looking for support or already pursued the available support channels without success.
- I have checked the troubleshooting guide for my problem, without success.
Viper Version
1.19.0
Go Version
1.22.0
Config Source
Manual set
Format
JSON
Repl.it link
No response
Code reproducing the issue
Expected Behavior
I hope it can run stably.
Actual Behavior
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x68 pc=0x7ff65768aa0e]
goroutine 214013 [running]:
github.com/spf13/viper.(*Viper).getConfigFile(0x32?)
C:/Users/srackHall/go/pkg/mod/github.com/spf13/[email protected]/viper.go:2227 +0xe
github.com/spf13/viper.(*Viper).WatchConfig.func1()
C:/Users/srackHall/go/pkg/mod/github.com/spf13/[email protected]/viper.go:450 +0xf9
created by github.com/spf13/viper.(*Viper).WatchConfig in goroutine 213045
C:/Users/srackHall/go/pkg/mod/github.com/spf13/[email protected]/viper.go:442 +0x87
exit status 2
Steps To Reproduce
No response
Additional Information
No response
Activity