Skip to content

Commit

Permalink
Fix potential crash in thing properties panel
Browse files Browse the repository at this point in the history
  • Loading branch information
sirjuddington committed May 20, 2014
1 parent 2800feb commit a8f63ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ThingPropsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,11 @@ void ThingPropsPanel::onSpriteClicked(wxMouseEvent& e)
label_type->SetLabel(tt->getName());

// Update args
argspec_t as = tt->getArgspec();
panel_args->setup(&as);
if (panel_args)
{
argspec_t as = tt->getArgspec();
panel_args->setup(&as);
}

// Update layout
Layout();
Expand Down

0 comments on commit a8f63ab

Please sign in to comment.