Committer: vsukhanov
LJSUP-7216: fix "Can't call method..." error.U trunk/cgi-bin/LJ/SUP/RPC/Command/comments_tree.pm
Modified: trunk/cgi-bin/LJ/SUP/RPC/Command/comments_tree.pm =================================================================== --- trunk/cgi-bin/LJ/SUP/RPC/Command/comments_tree.pm 2010-12-21 04:14:39 UTC (rev 9874) +++ trunk/cgi-bin/LJ/SUP/RPC/Command/comments_tree.pm 2010-12-21 08:56:37 UTC (rev 9875) @@ -187,7 +187,7 @@ ## Provide identity info my %ident_info = (); - if (my $ident = $pu->identity){ + if ($pu and my $ident = $pu->identity){ $ident_info{typeid} = $ident->typeid; $ident_info{short_code} = $ident->short_code; $ident_info{name} = $ident->display_name($pu);