blish-hud / Blish-HUD

A Guild Wars 2 overlay with extreme extensibility through compiled modules.
https://blishhud.com
MIT License
311 stars 60 forks source link

Fix reading empty process #921

Closed Tharylia closed 9 months ago

Tharylia commented 9 months ago

This PR aims to fix blish reading an empty process on startup which casues a win32 access denied exception. ( Triggering the contingency dialog. )

The cause of the empty process ids (0) are MumbleMock tools that have no process selected at the given time or just cleared the memory file setting it to the default int value of 0.

Discussion Reference

All new features must be discussed prior to code review. This is to ensure that the implementation aligns with other design considerations. Please link to the Discord discussion:

None

Is this a breaking change?

Breaking changes require additional review prior to merging. If you answer yes, please explain what breaking changes have been made.

No

sonarcloud[bot] commented 9 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication