Fixed Null

MattiGB

Member
Joined
Apr 2, 2016
Messages
118
In my logs I found that error:
Code:
[LIST]
[*]TypeError: Argument 1 passed to XFA\Roster\XF\Entity\User::canEditRoster() must be an instance of XFA\Roster\Entity\Roster, null given
 
[*]src/addons/XFA/Roster/XF/Entity/User.php:177
[/LIST]
Code:
#0 [internal function]: XFA\Roster\XF\Entity\User->canEditRoster(NULL)
#1 src/XF/Template/Templater.php(939): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l1/s30/public/xfa_roster_roster_index.php(164): XF\Template\Templater->method(Object(ThemeHouse\Reactions\XF\Entity\User), 'canEditRoster', Array)
#3 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s30/public/xfa_tourn_tournament_participants.php(144): XF\Template\Templater->callMacro('xfa_roster_rost...', 'item', Array, Array)
#5 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfa_tourn_tourn...', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('', 'public:xfa_tour...', Array)
#9 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}
Code:
array(4) {
  ["url"] => string(71) "/tournaments/gameon-eliminacje-2-league-of-legends-5on5.34/participants"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,867
Ok thanks for reporting will fix that.