Skip to content

Commit

Permalink
Check if default architecture exists before rendering the code (skip-ci)
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed Jul 15, 2024
1 parent 262d1e0 commit 79ff2cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/codedatarenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ std::vector<DisassemblyTextLine> CodeDataRenderer::GetLinesForData(BinaryView* d

auto codeSize = type->GetElementCount();
auto arch = data->GetDefaultArchitecture();
if (!arch)
return result;
auto buffer = data->ReadBuffer(addr, codeSize);
if (buffer.GetLength() == 0)
return result;
Expand Down

0 comments on commit 79ff2cf

Please sign in to comment.