System error

error:  Can't call method "description" on an undefined value at /usr/local/idx/apache2/htdocs.wpasheville/directory/our-team/office/dhandler line 302.
context: 
... 
298:  my $schema = schema();
299:  my $off = $schema->resultset('Office')->find($id);
300:  my $rs = $schema->resultset('Agent')->search({ 'me.office_id' => $id, 'me.active' => 1, },{ order_by => 'last_name', join => qw/Office/ });
301:  my $offices = $schema->resultset('Office')->search({ site_id => { -in => \@REMAXIDS } },{ order_by => 'description' });
302:  my $zoff = lc($off->description);
303:  my $map = $MAP{$zoff} || $MAP{ballantyne};
304:  my $phone = $off->phone;
305:  $phone =~ s:[^\d]::g;
306:  $phone =~ s:^1::g;
... 
code stack:  /usr/local/idx/apache2/htdocs.wpasheville/directory/our-team/office/dhandler:302
raw error






























Can't call method "description" on an undefined value at /usr/local/idx/apache2/htdocs.wpasheville/directory/our-team/office/dhandler line 302.


Trace begun at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "description" on an undefined value at /usr/local/idx/apache2/htdocs.wpasheville/directory/our-team/office/dhandler line 302.^J') called at /usr/local/idx/apache2/htdocs.wpasheville/directory/our-team/office/dhandler line 302
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7accd78)') called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 1300
eval {...} at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x6e2a6a8)') called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x6e2a6a8)') called at /usr/local/lib/perl5/site_perl/5.28.3/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x6e2f578)', 'Apache2::RequestRec=SCALAR(0x6e2f620)') called at (eval 26) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x6e2f620)') called at -e line 0
eval {...} at -e line 0