Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should return error #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

usernameisnull
Copy link

if not return error, sometimes the program invoke this may panic

@Amrf000
Copy link

Amrf000 commented Aug 1, 2024

Jul 26 19:32:12 [1354154]: panic: runtime error: invalid memory address or nil pointer dereference Jul 26 19:32:12 [1354154]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xafd118] Jul 26 19:32:12 [1354154]: goroutine 7767161 [running]: Jul 26 19:32:12 [1354154]: xxx/gojenkins.(*Requester).SetCrumb(0xc0009aed40, {0x17cf6b0, 0x1ff94e0}, 0xc039615d58) Jul 26 19:32:12 [1354154]: xxx/gojenkins/request.go:69 +0xb8
May leading to a probability panic if without this patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants