Commit 6e0d37ee authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to previous revision.

parent 9f3205c9
......@@ -911,8 +911,9 @@ sub DeleteSlice($)
# Do not allow a paniced slice to be terminated until the panic
# is cleared.
#
if ($slice_experiment->state() eq EXPTSTATE_PANICED() ||
$slice_experiment->paniced()) {
if (defined($slice_experiment) &&
($slice_experiment->state() eq EXPTSTATE_PANICED() ||
$slice_experiment->paniced())) {
print STDERR "Refusing to terminate a paniced experiment\n";
$slice->UnLock();
return GeniResponse->Create(GENIRESPONSE_REFUSED(), undef,
......
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