Committer: wisest-owl
LJSUP-13913: Error for suspended twitter-accountU trunk/cgi-bin/LJ/Widget/ErrorPage.pm
Modified: trunk/cgi-bin/LJ/Widget/ErrorPage.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/ErrorPage.pm 2012-11-09 09:54:36 UTC (rev 12873) +++ trunk/cgi-bin/LJ/Widget/ErrorPage.pm 2012-11-12 06:57:58 UTC (rev 12874) @@ -224,8 +224,8 @@ # using direct DB request because # there are no reading methods for statushistory - if ($can_view_reason) { - my $uid = $args{'journal'} -> userid; + if ($can_view_reason && $args{'journal'}) { + my $uid = $args{'journal'}->userid; my $dbr = LJ::get_db_reader(); $dbr->{'RaiseError'} = 1;