]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1492511 - Code to updating subscriber values for current private bugs is throwing...
authordklawren <dklawren@users.noreply.github.com>
Thu, 20 Sep 2018 20:05:56 +0000 (16:05 -0400)
committerGitHub <noreply@github.com>
Thu, 20 Sep 2018 20:05:56 +0000 (16:05 -0400)
extensions/PhabBugz/lib/Feed.pm

index 2dbeef6a711731643486523583433af5efa3a599..b338e9a72ec1b4963899b9e1d4af81d50db2a272 100644 (file)
@@ -636,6 +636,11 @@ sub process_new_user {
         foreach my $attachment (@attachments) {
             my ($revision_id) = ($attachment->filename =~ PHAB_ATTACHMENT_PATTERN);
 
+            if (!$revision_id) {
+                WARN("Skipping " . $attachment->filename . " on bug $bug_id. Filename should be fixed.");
+                next;
+            }
+
             INFO("Processing revision D$revision_id");
 
             my $revision = Bugzilla::Extension::PhabBugz::Revision->new_from_query(