System error

error:  Can't call method "get_brand_profile_id" on an undefined value at /www/perl/furnacecompare/htdocs/manufacturers/dhandler line 140.
context: 
... 
136:  $brand_name = $brand->get_name;
137:  $brand_id = $brand->id;
138:  #warn("brand_name is : $brand_name");
139:  $bpm = OCF::BrandProfileMap->search( brand_id => $brand->get_id )->next;
140:  $complete_profile = OCF::Cache::BrandProfile->getData( brand_profile_id => int $bpm->get_brand_profile_id );
141:  $profile_data = $complete_profile->{brand_profile_data};
142:  $meta_desc = $profile_data->{page_meta_description};
143:  $page_title = $profile_data->{page_title};
144:  $page_h1_value = $profile_data->{page_h1_value};
... 
code stack:  /www/perl/furnacecompare/htdocs/manufacturers/dhandler:140
/usr/local/share/perl5/HTML/Mason/Request.pm:947
/www/perl/furnacecompare/htdocs/manufacturers/dhandler:182
/www/perl/furnacecompare/htdocs/autohandler:17
raw error






























Can't call method "get_brand_profile_id" on an undefined value at /www/perl/furnacecompare/htdocs/manufacturers/dhandler line 140.


Trace begun at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "get_brand_profile_id" on an undefined value at /www/perl/furnacecompare/htdocs/manufacturers/dhandler line 140.^J') called at /www/perl/furnacecompare/htdocs/manufacturers/dhandler line 140
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 149
HTML::Mason::Component::dynamic_subs_init('HTML::Mason::Component::FileBased=HASH(0x7fb40e0c5958)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 947
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7fb40e041528)', 'method_get_title') called at /www/perl/furnacecompare/htdocs/manufacturers/dhandler line 182
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x7fb40e0c54f0)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1305
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef) called at /www/perl/furnacecompare/htdocs/autohandler line 17
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb40c425718)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 484
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 484
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 436
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fb40e041528)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fb40e041528)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fb40c3ee380)', 'Apache2::RequestRec=SCALAR(0x7fb40e0b1da8)') called at (eval 54) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7fb40e0b1da8)') called at -e line 0
eval {...} at -e line 0