summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-06 15:51:29 -0600
committerJeff Carr <[email protected]>2024-11-06 15:51:29 -0600
commit31355467a58e87673f959dbfed933ad02fba0733 (patch)
tree9815ffb3fcfdbada9c9dfa46bcd2532f70c79630 /common.go
parente6f883a9b5e62cb5d52e5c2dbc37d3d15db11b12 (diff)
dumb nil panicv0.22.7
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.go b/common.go
index 8895542..8b88913 100644
--- a/common.go
+++ b/common.go
@@ -70,6 +70,14 @@ func (rs *RepoStatus) IsProtobuf() (bool, []string, error) {
// returns the filesystem path to the repo
func (rs *RepoStatus) Path() string {
+ if rs == nil {
+ log.Warn("rs == nil")
+ return ""
+ }
+ if rs.realPath == nil {
+ log.Warn("rs.realPath == nil")
+ return ""
+ }
return rs.realPath.String()
}