Bug report-terraform crached

# terraform apply

╷
│ Error: Plugin did not respond
│ 
│   with vsphere_virtual_machine.majd_vm,
│   on vm_majd.tf line 50, in resource "vsphere_virtual_machine" "majd_vm":
│   50: resource "vsphere_virtual_machine" "majd_vm" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).PlanResourceChange call. The plugin logs may contain more details.
╵

Stack trace from the terraform-provider-vsphere_v2.0.2_x5 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xec4d3a]

goroutine 179 [running]:
github.com/vmware/govmomi/vapi/rest.(*Client).Resource(...)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/vmware/govmomi/vapi/rest/client.go:120
github.com/vmware/govmomi/vapi/library.(*Manager).GetLibraryItem(0xc0003390b8, 0x19e30e0, 0xc000128008, 0xc0007f6000, 0x24, 0xc00014e080, 0x234d2a0, 0xc00014e050)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/vmware/govmomi/vapi/library/library_item.go:138 +0x3a
github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/contentlibrary.ItemFromID(0x0, 0xc0007f6000, 0x24, 0x1, 0x1, 0x0)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/contentlibrary/content_library_helper.go:144 +0xfd
github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/contentlibrary.IsContentLibraryItem(0x0, 0xc0007f6000, 0x24, 0x13f36c0)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/contentlibrary/content_library_helper.go:155 +0xb2
github.com/hashicorp/terraform-provider-vsphere/vsphere.resourceVSphereVirtualMachineCustomizeDiff(0x19e30a8, 0xc0004640c0, 0xc0009c5140, 0x14351a0, 0xc00091e3a0, 0x19e8768, 0xc000560900)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/resource_vsphere_virtual_machine.go:970 +0xb8f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.Diff(0xc0002a8780, 0x19e30a8, 0xc0004640c0, 0xc0005a0310, 0xc0005cfe00, 0x17ae768, 0x14351a0, 0xc00091e3a0, 0x237f500, 0x13f36c0, ...)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go:540 +0xb29
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).SimpleDiff(0xc0002b8e00, 0x19e30a8, 0xc0004640c0, 0xc0005a0310, 0xc0005cfe00, 0x14351a0, 0xc00091e3a0, 0x0, 0x0, 0x0)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go:506 +0xa5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).PlanResourceChange(0xc0001345d0, 0x19e30a8, 0xc0004640c0, 0xc0005860a0, 0xc0004640c0, 0x16b5a40, 0xc00033c100)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go:693 +0x7c5
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).PlanResourceChange(0xc0007afb20, 0x19e3150, 0xc0004640c0, 0xc0005a0000, 0xc0007afb20, 0xc00033c180, 0xc000785ba0)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/server/server.go:315 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_PlanResourceChange_Handler(0x16b5a40, 0xc0007afb20, 0x19e3150, 0xc00033c180, 0xc000a2a240, 0x0, 0x19e3150, 0xc00033c180, 0xc000a67000, 0x17bf)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:362 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000239dc0, 0x19ed138, 0xc000103080, 0xc000624000, 0xc0002a9d40, 0x233e288, 0x0, 0x0, 0x0)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:1194 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc000239dc0, 0x19ed138, 0xc000103080, 0xc000624000, 0x0)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:1517 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0003021c0, 0xc000239dc0, 0x19ed138, 0xc000103080, 0xc000624000)
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:859 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:857 +0x1fd

Error: The terraform-provider-vsphere_v2.0.2_x5 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

Version of terraform is :

# terraform -version
Terraform v1.1.6
on linux_amd64
+ provider registry.terraform.io/hashicorp/vsphere v2.0.2