diff --git a/plugins/ui/include/ui/hex_editor.hpp b/plugins/ui/include/ui/hex_editor.hpp index 15688d80e..67b1bce45 100644 --- a/plugins/ui/include/ui/hex_editor.hpp +++ b/plugins/ui/include/ui/hex_editor.hpp @@ -114,7 +114,7 @@ namespace hex::ui { } void setSelection(const Region ®ion) { this->setSelection(region.getStartAddress(), region.getEndAddress()); } void setSelection(u128 start, u128 end) { - if (!ImHexApi::Provider::isValid()) + if (!ImHexApi::Provider::isValid() || m_provider == nullptr) return; if (start > m_provider->getBaseAddress() + m_provider->getActualSize())