Fix deleting non existent environments

that is an error caused by throwing a panic when an environment is not found and a nonexistent runner manager at the end of the chain is asked for it.
This commit is contained in:
Maximilian Paß
2022-05-29 15:47:04 +02:00
committed by Sebastian Serth
parent 689493047d
commit 795c83f7b2
5 changed files with 49 additions and 15 deletions

View File

@@ -30,7 +30,7 @@ func (n *AbstractManager) SetNextHandler(next AccessorHandler) {
}
func (n *AbstractManager) NextHandler() AccessorHandler {
if n.nextHandler != nil {
if n.HasNextHandler() {
return n.nextHandler
} else {
return NewAbstractManager()