System error

error:  Can't call method "get_brand_profile_id" on an undefined value at /www/perl/furnacecompare/htdocs/manufacturers/dhandler line 150.
context: 
... 
146:  $brand_name = $brand->get_name;
147:  $brand_id = $brand->id;
148:  #warn("brand_name is : $brand_name");
149:  $bpm = OCF::BrandProfileMap->search( brand_id => $brand->get_id )->next;
150:  $complete_profile = OCF::Cache::BrandProfile->getData( brand_profile_id => int $bpm->get_brand_profile_id );
151:  $profile_data = $complete_profile->{brand_profile_data};
152:  $meta_desc = $profile_data->{page_meta_description};
153:  $page_title = $profile_data->{page_title};
154:  $page_h1_value = $profile_data->{page_h1_value};
... 
code stack:  /www/perl/furnacecompare/htdocs/manufacturers/dhandler:150
/usr/local/share/perl5/HTML/Mason/Request.pm:947
/www/perl/furnacecompare/htdocs/manufacturers/dhandler:192
/www/perl/furnacecompare/htdocs/autohandler:15
raw error






























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


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 150.^J') called at /www/perl/furnacecompare/htdocs/manufacturers/dhandler line 150
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(0x7fce27006638)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 947
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7fce264bd500)', 'method_get_title') called at /www/perl/furnacecompare/htdocs/manufacturers/dhandler line 192
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x7fce27006a70)') 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 15
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fce26feff08)') 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(0x7fce264bd500)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fce264bd500)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fce25adda48)', 'Apache2::RequestRec=SCALAR(0x7fce26462258)') called at (eval 54) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7fce26462258)') called at -e line 0
eval {...} at -e line 0