Fixed Unhelpful error upgrading incorrect add-on id from cli...

Affected version
2.0.0 Beta 2

Liam W

Well-known member
If you try and upgrade (and possible install, not sure) an add-on from the CLI with an incorrect ID, you get this error:

Error: Call to a member function canUpgrade() on null src/XF/Cli/Command/AddOnUpgrade.php:42
(You get the standard unexpected error message in the CLI if you don't have debug mode enabled)