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

Adding verification to prevent crash #709

Merged
merged 4 commits into from
Dec 20, 2022
Merged

Adding verification to prevent crash #709

merged 4 commits into from
Dec 20, 2022

Conversation

carlospess0a
Copy link
Contributor

@carlospess0a carlospess0a commented Dec 19, 2022

Adding verification to prevent crash

Details

Thread 2 "canary" received signal SIGSEGV, Segmentation fault.
2022-12-19 15:32:19 - [Switching to Thread 0x7ffff79ac700 (LWP 117106)]
2022-12-19 15:32:19 - 0x00005555556e888c in Player::postAddNotification (this=0x7fffb02bb680, thing=, oldParent=, index=, link=) at /home/xxx/src/creatures/players/player.cpp:3870
2022-12-19 15:32:19 - 3870 if (!Position::areInRange<1, 1, 0>(container->getPosition(), getPosition())) {

carlospess0a and others added 3 commits December 19, 2022 14:31
Co-authored-by: Eduardo Dantas <eduardo.dantas@hotmail.com.br>
@sonarcloud
Copy link

sonarcloud bot commented Dec 19, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dudantas dudantas merged commit 6b6f0b2 into main Dec 20, 2022
@dudantas dudantas deleted the FIX_CRASH branch December 20, 2022 19:51
luan pushed a commit that referenced this pull request Jul 11, 2023
Check if the container is nullptr before accessing its methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants