X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2FMaypole.pm;h=b832f8b222781ad1f5b6c458d2e6c838867b7319;hb=3526f64ac57c9f3502f6a56aed4615c2354dc6c3;hp=83607c8db34137662cf0694cf8a494179d319d18;hpb=4fd9385b18ccced6b477b25293b8f0ec67679296;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 83607c8..b832f8b 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -922,7 +922,7 @@ processed. sub exception { my ($self, $error, $when) = @_; - if ($self->view_object->can("report_error") and $self->debug) { + if (ref $self->view_object && $self->view_object->can("report_error") and $self->debug) { $self->view_object->report_error($self, $error, $when); return OK; }