mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-13 01:25:45 +00:00
bugfix: Fixed crash when requesting execution status that could not be found (NPE) (#440)
This commit is contained in:
@@ -213,12 +213,13 @@ func (api *oliveTinAPI) ExecutionStatus(ctx ctx.Context, req *pb.ExecutionStatus
|
||||
|
||||
if req.ExecutionTrackingId != "" {
|
||||
ile = getExecutionStatusByTrackingID(api, req.ExecutionTrackingId)
|
||||
|
||||
} else {
|
||||
ile = getMostRecentExecutionStatusById(api, req.ActionId)
|
||||
}
|
||||
|
||||
if ile == nil {
|
||||
return nil, status.Errorf(codes.NotFound, "Execution not found.")
|
||||
return nil, status.Error(codes.NotFound, "Execution not found")
|
||||
} else {
|
||||
res.LogEntry = internalLogEntryToPb(ile)
|
||||
}
|
||||
|
||||
@@ -407,7 +407,7 @@ function marshalMreOutput (dashboardComponent, fieldset) {
|
||||
})
|
||||
|
||||
const updateMre = (pre, json) => {
|
||||
pre.innerHTML = json.stdout
|
||||
pre.innerHTML = json.output
|
||||
}
|
||||
|
||||
window.addEventListener('ExecutionFinished', (e) => {
|
||||
|
||||
Reference in New Issue
Block a user