Commit 07778c8
committed
fix: don't trigger BuildProject init during source-string analysis
`codajv -s <source>` crashed with ExceptionInInitializerError/NPE: analyze()
called BuildProject.cleanLibraryDependencies() unconditionally, and merely
referencing BuildProject runs its static initializer, which resolves a
gradle/maven command via new File(projectRootPom) — null in source mode.
Guard the cleanup so it runs only in project mode, where dependencies are
actually downloaded. Caught by the new PyPI release smoke test.1 parent cc6b7dc commit 07778c8
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
| |||
0 commit comments