Skip to content

Commit c545e36

Browse files
committed
+1
1 parent 1e5449f commit c545e36

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
@@ -88,7 +88,7 @@ func (dm *DocumentManager) ReParse(docUri uri.URI, errHndl ddperror.Handler) err
8888

8989
modules := map[string]*ast.Module{}
9090
for _, v := range dm.documentStates {
91-
if v != doc {
91+
if v != doc && v.Module != nil {
9292
modules[v.Module.FileName] = v.Module
9393
}
9494
}

0 commit comments

Comments
 (0)