fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-08-13 01:49 am

[dw-free] clean up error logs

[commit: http://hg.dwscoalition.org/dw-free/rev/3d8b759e2c60]

http://bugs.dwscoalition.org/show_bug.cgi?id=2812

No entry for invalid comments, so let's short-circuit here.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/Comment.pm
--------------------------------------------------------------------------------
diff -r 9dbb793b9516 -r 3d8b759e2c60 cgi-bin/LJ/Comment.pm
--- a/cgi-bin/LJ/Comment.pm	Fri Aug 13 09:36:17 2010 +0800
+++ b/cgi-bin/LJ/Comment.pm	Fri Aug 13 09:42:28 2010 +0800
@@ -351,7 +351,7 @@ sub jtalkid {
 
 sub dtalkid {
     my $self = shift;
-    my $entry = $self->entry;
+    my $entry = $self->entry or return undef;
     return ($self->jtalkid * 256) + $entry->anum;
 }
 
--------------------------------------------------------------------------------