Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e12a068

Browse filesBrowse files
committed
Fixed nil exception
1 parent 69d9ae7 commit e12a068
Copy full SHA for e12a068

File tree

1 file changed

+5
-1
lines changed
Filter options

1 file changed

+5
-1
lines changed

‎commands/upload/upload.go

Copy file name to clipboardExpand all lines: commands/upload/upload.go
+5-1Lines changed: 5 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.