summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xshowdependencytree.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi
index 5efa0bc9c..dfc715cf8 100755
--- a/showdependencytree.cgi
+++ b/showdependencytree.cgi
@@ -49,7 +49,7 @@ my $dbh = Bugzilla->switch_to_shadow_db();
# Make sure the bug ID is a positive integer representing an existing
# bug that the user is authorized to access.
-my $id = $cgi->param('id');
+my $id = $cgi->param('id') || ThrowUserError('invalid_bug_id_or_alias');
ValidateBugID($id);
my $current_bug = new Bugzilla::Bug($id);