replit / upm

⠕ Universal Package Manager - Python, Node.js, Ruby, Emacs Lisp.
https://repl.it
Other
1.06k stars 91 forks source link

cfg.Project can be nil, which panics #288

Closed blast-hardcheese closed 2 months ago

blast-hardcheese commented 2 months ago

Why

Surely there must be a way to statically analyze this.

What changed

Turns out cfg.Project was being accessed without nil check.

Test plan

Manual testing