Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nil pointer on device get-samples and payload parsing on device send-data #235

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

eddbbt
Copy link
Contributor

@eddbbt eddbbt commented Dec 6, 2023

Fix of nil pointer error when running command device get-samples
Fix of payload parsing when sending an array through device send-data

@eddbbt eddbbt marked this pull request as ready for review December 14, 2023 16:35
@eddbbt eddbbt changed the title Errors fix Fix nil pointer and send-data errors Jan 8, 2024
@eddbbt eddbbt changed the title Fix nil pointer and send-data errors Fix nil pointer on device get-samples and payload parsing on device send-data Jan 8, 2024
@@ -808,6 +808,7 @@ func devicesGetSamplesF(command *cobra.Command, args []string) error {
fmt.Fprintf(os.Stderr, "You need to specify a valid path for interface %s\n", interfaceName)
os.Exit(1)
default:

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: remove this empty line

@eddbbt eddbbt force-pushed the errors_fix branch 6 times, most recently from f425abe to 8f3b707 Compare January 26, 2024 15:34
Fix nil pointer error  on appengine devices get-samples

Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
Fix error on command device send-data with array payload

Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
@Annopaolo Annopaolo merged commit e7c92cd into astarte-platform:master Jan 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants