SAP / cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Apache License 2.0
43 stars 6 forks source link

have an error:panic: runtime error: invalid memory address or nil pointer dereference #27

Closed yuxig closed 4 years ago

yuxig commented 4 years ago

Description

have an error panic: runtime error: invalid memory address or nil pointer dereference goroutine 1 [running]: cf-html5-apps-repo-cli-plugin/clients.CreateServiceInstance(0x14ec9c0, 0xc0001401a0, 0xc00001c9f0, 0x24, 0xc00009bfe8, 0x8, 0xc0002d34a0, 0x24, 0x0, 0xc00001c9f0, ...) /Users/i070970/go/src/cf-html5-apps-repo-cli-plugin/clients/create_service_instance.go:37 +0x36a cf-html5-apps-repo-cli-plugin/commands.(PushCommand).PushHTML5Applications(0x1801cc0, 0xc000140550, 0x1, 0x1, 0x0, 0x0, 0x0, 0xc000140510) /Users/i070970/go/src/cf-html5-apps-repo-cli-plugin/commands/html5_push_command.go:409 +0x2263 cf-html5-apps-repo-cli-plugin/commands.(PushCommand).Execute(0x1801cc0, 0xc0000940b0, 0x0, 0x0, 0xc0001401a0) /Users/i070970/go/src/cf-html5-apps-repo-cli-plugin/commands/html5_push_command.go:83 +0x12a6 main.(*HTML5Plugin).Run(0x181ff48, 0x14ec9c0, 0xc0001401a0, 0xc0000940b0, 0x1, 0x1) /Users/i070970/go/src/cf-html5-apps-repo-cli-plugin/html5_plugin.go:45 +0x1b1 cf-html5-apps-repo-cli-plugin/vendor/github.com/cloudfoundry/cli/plugin.Start(0x14e5fc0, 0x181ff48) /Users/i070970/go/src/cf-html5-apps-repo-cli-plugin/vendor/github.com/cloudfoundry/cli/plugin/plugin_shim.go:30 +0x276 main.main() /Users/i070970/go/src/cf-html5-apps-repo-cli-plugin/html5_plugin.go:65 +0x3d

Environment

CLI Output

Set environment variable DEBUG=1, run the flow and paste output here.

micellius commented 4 years ago

@yuxig , thanks for reporting an issue!

Looks like it was fixed with #16, but the fix haven't been released yet as official version and available only if you build plugin from source.

So, you'll see it fixed in 1.4.0

micellius commented 4 years ago

Closing the issue, since v1.4.0 and above are already available via

cf install-plugin html5-plugin