Skip to content

Commit

Permalink
#5613: Fix a crash that I ran into
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Oct 22, 2021
1 parent 4369ea2 commit 5a9d89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dm.editing/AIEditingPanel.cpp
Expand Up @@ -307,7 +307,7 @@ Entity* AIEditingPanel::getEntityFromSelection()
{
Entity* candidate = Node_getEntity(node);

if (candidate->isOfType("atdm:ai_base"))
if (candidate != nullptr && candidate->isOfType("atdm:ai_base"))
{
entity = candidate;
}
Expand Down

0 comments on commit 5a9d89b

Please sign in to comment.