Commit 079c5fb5 authored by Mike Hibler's avatar Mike Hibler

Catch a null pointer deref and print a more meaningful message.

This should never have happened in the first place (pid of a lease
not existing) and Leigh is fixing the root cause.
parent ad7a01e0
......@@ -1650,6 +1650,10 @@ sub AccessCheck($$$) {
$gid = $pid
if ($gid eq "");
my $group = Group->Lookup($pid, $gid);
if (!$group) {
print STDERR "Could not find group $pid/$gid!\n";
return 0;
# Members of the owning project have some implicit permissions, depending
# on their project trust.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment