fix: More per-provider data access errors (#2256)

This commit is contained in:
paxcut
2025-05-17 21:48:36 -07:00
committed by GitHub
parent f729d36214
commit ff0bcfb7da

View File

@@ -59,8 +59,9 @@ namespace hex::plugin::hashes {
ViewHashes::ViewHashes() : View::Window("hex.hashes.view.hashes.name", ICON_VS_KEY) {
EventRegionSelected::subscribe(this, [this](const auto &providerRegion) {
for (auto &function : m_hashFunctions.get(providerRegion.getProvider()))
function.reset();
if (providerRegion.getProvider() != nullptr)
for (auto &function : m_hashFunctions.get(providerRegion.getProvider()))
function.reset();
});
ImHexApi::HexEditor::addTooltipProvider([this](u64 address, const u8 *data, size_t size) {