System error

error:  Can't call method "id" on an undefined value at /i4u/hg-mp/elres-mp/app/newbooking/include/template/header.htm line 37, <DATA> line 57.
context: 
... 
33: 
34:  my %search_args;
35:  if ($e->area eq 'reseller') {
36:  if ($session->entry_level eq 'property') {
37:  $search_args{pw_id} = @{ $session->link->property_wrappers }[0]->id;
38:  $search_args{region_id} = @{ $session->link->property_wrappers }[0]->region->id;
39:  } elsif ($session->progressbar eq 'property') {
40:  $search_args{pw_id} = @{ $session->link->property_wrappers }[0]->id;
41:  $search_args{region_id} = @{ $session->link->property_wrappers }[0]->region->id;
... 
code stack:  /i4u/hg-mp/elres-mp/app/newbooking/include/template/header.htm:37
/i4u/hg-mp/elres-mp/app/newbooking/autohandler.htm:300
raw error






























Can't call method "id" on an undefined value at /i4u/hg-mp/elres-mp/app/newbooking/include/template/header.htm line 37, <DATA> line 57.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "id" on an undefined value at /i4u/hg-mp/elres-mp/app/newbooking/include/template/header.htm line 37, <DATA> line 57.^J') called at /i4u/hg-mp/elres-mp/app/newbooking/include/template/header.htm line 37
HTML::Mason::Commands::__ANON__('link_id', 4841) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f9bb46b4320)', 'link_id', 4841) called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'link_id', 4841) called at /i4u/hg-mp/elres-mp/app/newbooking/autohandler.htm line 300
HTML::Mason::Commands::__ANON__('link_id', 4841) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f9bb4837c88)', 'link_id', 4841) called at /usr/share/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'link_id', 4841) called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('MasonX::Request::WithApacheSession=HASH(0x7f9bb45a7610)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('MasonX::Request::WithApacheSession=HASH(0x7f9bb45a7610)') called at /usr/share/perl5/MasonX/Request/WithApacheSession.pm line 130
MasonX::Request::WithApacheSession::exec('MasonX::Request::WithApacheSession=HASH(0x7f9bb45a7610)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f9bb47129a0)', 'Apache2::Request=SCALAR(0x7f9bb45fba80)') called at /i4u/hg-mp/elres-mp/ELRes/ApacheHandler.pm line 482
eval {...} at /i4u/hg-mp/elres-mp/ELRes/ApacheHandler.pm line 482
ELRes::ApacheHandler::handler('Apache2::RequestRec=SCALAR(0x7f9bb464b0c0)') called at -e line 0
eval {...} at -e line 0