Commit d1813557 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Fix a 'nil pointer refference' error in buildsHelper

parent 3efd6d4a
......@@ -146,6 +146,10 @@ func (b *buildsHelper) releaseRequest(runner *common.RunnerConfig) bool {
}
func (b *buildsHelper) addBuild(build *common.Build) {
if build == nil {
return
}
b.lock.Lock()
defer b.lock.Unlock()
......
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