summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PatchIndexer.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/PatchIndexer.pm b/PatchIndexer.pm
index c1cb598..632ef37 100644
--- a/PatchIndexer.pm
+++ b/PatchIndexer.pm
@@ -153,7 +153,7 @@ sub selectPatches {
}
}
# Special case for comments
- if(length($i->{comment})) {
+ if(defined($i) and defined($i->{comment}) and length($i->{comment})) {
$match_pn = $match_pv = 1;
}
if($match_pn == 1 and $match_pv == 1) {