Commit bd41831f authored by Robert Griesemer's avatar Robert Griesemer

godoc: diagnostic for empty FS tree

R=adg
CC=golang-dev
https://golang.org/cl/5615055
parent 870c9d1c
......@@ -114,7 +114,12 @@ func registerPublicHandlers(mux *http.ServeMux) {
}
func initFSTree() {
fsTree.set(newDirectory(filepath.Join(*goroot, *testDir), nil, -1))
dir := newDirectory(filepath.Join(*goroot, *testDir), nil, -1)
if dir == nil {
log.Println("Warning: FSTree is nil")
return
}
fsTree.set(dir)
invalidateIndex()
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment