From c0a624eedf079ec0337daca1f5f621fd756890f6 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 6 Jul 2017 17:02:05 +0100 Subject: [Oxfordshire] Fix bug downloading All Inspectors RDI. --- perllib/FixMyStreet/Integrations/ExorRDI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perllib/FixMyStreet/Integrations/ExorRDI.pm b/perllib/FixMyStreet/Integrations/ExorRDI.pm index b0e581f84..bf12c45b0 100644 --- a/perllib/FixMyStreet/Integrations/ExorRDI.pm +++ b/perllib/FixMyStreet/Integrations/ExorRDI.pm @@ -23,7 +23,8 @@ has user => ( is => 'ro', coerce => sub { return $_[0] if blessed($_[0]) && $_[0]->isa('FixMyStreet::DB::Result::User'); - FixMyStreet::DB->resultset('User')->find( { id => $_[0] } ); + FixMyStreet::DB->resultset('User')->find( { id => $_[0] } ) + if $_[0]; }, ); -- cgit v1.2.3