Skip to content

Commit e12a068

Browse files
committed
Fixed nil exception
1 parent 69d9ae7 commit e12a068

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: commands/upload/upload.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,11 @@ func runProgramAction(pme *packagemanager.Explorer,
512512
uploadCompleted()
513513
logrus.Tracef("Upload successful")
514514

515-
return updatedUploadPort.Await().ToRPC(), nil
515+
updatedPort := updatedUploadPort.Await()
516+
if updatedPort == nil {
517+
return nil, nil
518+
}
519+
return updatedPort.ToRPC(), nil
516520
}
517521

518522
func detectUploadPort(

0 commit comments

Comments
 (0)