[dw-free] autovivification error in Userpic.pm
[commit: http://hg.dwscoalition.org/dw-free/rev/a13640b18653]
http://bugs.dwscoalition.org/show_bug.cgi?id=1624
Add checking.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1624
Add checking.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/LJ/Userpic.pm
-------------------------------------------------------------------------------- diff -r fdb51799fa25 -r a13640b18653 cgi-bin/LJ/Userpic.pm --- a/cgi-bin/LJ/Userpic.pm Tue Aug 18 02:37:21 2009 +0000 +++ b/cgi-bin/LJ/Userpic.pm Tue Aug 18 14:38:30 2009 +0000 @@ -514,6 +514,7 @@ sub load_row { sub load_row { my $self = shift; my $u = $self->owner; + return unless defined $u; return if $u->is_expunged; # Load all of the userpics from cache, or load them from the database and write them to cache --------------------------------------------------------------------------------