Skip to content

Commit cd5c67c

Browse files
committed
fixed crash on startup if DDPPATH is not set correctly
1 parent 992916b commit cd5c67c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documents/documents.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var preparsed_duden map[string]*ast.Module
1919
func init() {
2020
preparsed_duden = make(map[string]*ast.Module)
2121
filepath.WalkDir(ddppath.Duden, func(path string, d fs.DirEntry, err error) error {
22-
if d.IsDir() {
22+
if d == nil || d.IsDir() {
2323
return nil
2424
}
2525
if filepath.Ext(path) != ".ddp" {

0 commit comments

Comments
 (0)