Skip to content

Commit

Permalink
Fixed nil exception
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Aug 16, 2023
1 parent 69d9ae7 commit e12a068
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion commands/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,11 @@ func runProgramAction(pme *packagemanager.Explorer,
uploadCompleted()
logrus.Tracef("Upload successful")

return updatedUploadPort.Await().ToRPC(), nil
updatedPort := updatedUploadPort.Await()
if updatedPort == nil {
return nil, nil
}
return updatedPort.ToRPC(), nil
}

func detectUploadPort(
Expand Down

0 comments on commit e12a068

Please sign in to comment.