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 CameraSensor to check if element is null before access #361

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

Levi-Armstrong
Copy link
Contributor

I was try to use the example/save_image which segfaults during execution. In the CameraSensor it was failing to check if the sensor element was not null before accessing it.

@github-actions github-actions bot added the 🌱 garden Ignition Garden label Jul 19, 2023
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

Linters:

/github/workspace/src/CameraSensor.cc:260:  Lines should be <= 80 characters long  [whitespace/line_length] [2]

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

looks good to me. Just a minor cpplint issue.

@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Merging #361 (737a127) into gz-sensors7 (a5a0c34) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 737a127 differs from pull request most recent head d828de8. Consider uploading reports for the commit d828de8 to get more accurate results

@@             Coverage Diff              @@
##           gz-sensors7     #361   +/-   ##
============================================
  Coverage        69.70%   69.71%           
============================================
  Files               36       36           
  Lines             3958     3959    +1     
============================================
+ Hits              2759     2760    +1     
  Misses            1199     1199           
Impacted Files Coverage Δ
src/CameraSensor.cc 75.98% <100.00%> (+0.05%) ⬆️

@ahcorde ahcorde merged commit 44c67b0 into gazebosim:gz-sensors7 Jul 21, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants