This repository was archived by the owner on Nov 9, 2026. It is now read-only.
Repository navigation
Commit 6fef3cf
fix(java): make JavaSpec.NameSpace nil-safe when file is unknown
JavaSpec.NameSpace dereferenced `file.Package` on the in-repo branch
without a nil check; callers that pass `c.files[file]` can legitimately
return nil for files the collector hasn't registered (e.g. recursive
exportSymbol on a symbol whose URI wasn't scanned). Guard the deref so
NameSpace returns an empty PkgPath in that case instead of panicking.
Fixes TestJavaIPC_InterfaceKindAndImplements on this branch.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5ec9265 commit 6fef3cf
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| |||
0 commit comments