From 079c5fb5ccc80158e24b13332ec632006c747579 Mon Sep 17 00:00:00 2001 From: Mike Hibler Date: Mon, 7 Oct 2019 10:36:31 -0600 Subject: [PATCH] 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. --- db/Lease.pm.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/Lease.pm.in b/db/Lease.pm.in index 7d134632c..b5ef0a8b9 100644 --- a/db/Lease.pm.in +++ b/db/Lease.pm.in @@ -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. -- 2.22.0