Skip to content

Commit

Permalink
fix: nil pointer bug in language.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals committed Dec 1, 2023
1 parent 4f39a73 commit 87ae216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (lang *Language) Compile() {
panic(fmt.Sprintf("[Language -> %s] AnalyzerFactory must not be nil", lang.Name))
}

if lang.stubFs == nil {
if lang.stubFs == nil && lang.OnGenStubFS != nil {
lang.stubFs = &StubFS{}
lang.OnGenStubFS(lang.stubFs)
}
Expand Down

0 comments on commit 87ae216

Please sign in to comment.