summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Bug.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index ea84fddf5..1e2b78c9a 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -2795,6 +2795,11 @@ sub add_see_also {
my ($self, $input, $skip_recursion) = @_;
$input = trim($input);
+ if (!$input) {
+ ThrowCodeError('param_required',
+ { function => 'add_see_also', param => '$input' });
+ }
+
# If a bug id/alias has been taken, then treat it
# as a link to the local Bugzilla.
my $local_bug_uri = correct_urlbase() . "show_bug.cgi?id=";