Skip to content

Commit

Permalink
stop the attempted creation of an invalid trigger (one with no direct…
Browse files Browse the repository at this point in the history
… object) from causing an exception which stopped the user from being able to add new triggers or edit existing triggers until QS was relaunched
  • Loading branch information
neurolepsy committed Mar 14, 2011
1 parent 10813ea commit 9438532
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ - (void)updateIndirectObjects {

- (void)updateViewLocations {
QSAction *obj = [aSelector objectValue];
if ([obj argumentCount] == 2)
if (([obj respondsToSelector:@selector(argumentCount)]) && ([obj argumentCount] == 2))
[self showIndirectSelector:nil];
else
[self hideIndirectSelector:nil];
Expand Down

0 comments on commit 9438532

Please sign in to comment.