Preflight Checklist

  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • [x] I am not looking for support or already pursued the available support channels without success.
  • [x] 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/viper@v1.19.0/viper.go:2227 +0xe
github.com/spf13/viper.(
Viper).WatchConfig.func1() C:/Users/srackHall/go/pkg/mod/github.com/spf13/viper@v1.19.0/viper.go:450 +0xf9 created by github.com/spf13/viper.(*Viper).WatchConfig in goroutine 213045
C:/Users/srackHall/go/pkg/mod/github.com/spf13/viper@v1.19.0/viper.go:442 +0x87 exit status 2

Steps To Reproduce

No response

Additional Information

No response

Comment From: github-actions[bot]

Issues with no activity for 30 days are marked stale and subject to being closed.