Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/cache/testfuncs: fix crash with *error argument
The test detection logic incorrectly assumes that named types have a non-nil package, which is not true for Error (as we've encountered numerous times). Add the missing nil check. Fixes golang/go#70927 Change-Id: Ibdf483304b53ce219123e820d74acd4f9d12d710 Reviewed-on: https://go-review.googlesource.com/c/tools/+/637815 Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information