Skip to content

Commit

Permalink
Item14237: Not invoking plugin if its object doesn't exists.
Browse files Browse the repository at this point in the history
Fixes global desctruction stage problems.
  • Loading branch information
vrurg committed Apr 27, 2017
1 parent 5f4b2e5 commit 7539cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Plugins.pm
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ sub dispatch {

# apply handler on the remaining list of args
no strict 'refs';
my $status = $plugin->invoke( $handlerName, @_ );
my $status = $plugin->invoke( $handlerName, @_ ) if defined $plugin;
use strict 'refs';
if ( $status && $onlyOnceHandlers{$handlerName} ) {
return $status;
Expand Down

0 comments on commit 7539cc2

Please sign in to comment.