mirror of https://github.com/WerWolv/ImHex.git
fix: Crash when setting selection in a hex editor instance without provider
This commit is contained in:
parent
94bc279bd8
commit
b54f46de30
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue