-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
jenkinsci/github-plugin Received PushEvent for null from ip/domain NullPointerException DefaultPushGHEventSubscriber.onEvent #27202
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
Labels
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Comments
techknowlogick
pushed a commit
that referenced
this issue
Sep 24, 2023
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Sep 25, 2023
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Sep 25, 2023
silverwind
pushed a commit
that referenced
this issue
Sep 25, 2023
…27249) Backport #27203 by @Nabapadma-sarker Fixes #27202 Co-authored-by: Nabapadma-sarker <[email protected]>
silverwind
pushed a commit
that referenced
this issue
Sep 25, 2023
…27251) Backport #27203 by @Nabapadma-sarker Fixes #27202 Co-authored-by: Nabapadma-sarker <[email protected]>
project-mirrors-bot-tu bot
pushed a commit
to project-mirrors/forgejo-as-gitea-fork
that referenced
this issue
Jan 23, 2025
…27203) (go-gitea#27249) Backport go-gitea#27203 by @Nabapadma-sarker Fixes go-gitea#27202 Co-authored-by: Nabapadma-sarker <[email protected]> (cherry picked from commit 4b37eb2)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Description
main error happening on jenkins server PushEvent triggering
I find out that in https://github.com/jenkinsci/github-plugin/blob/master/src/main/java/org/jenkinsci/plugins/github/webhook/subscriber/DefaultPushGHEventSubscriber.java#L76
URL repoUrl = push.getRepository().getUrl();
https://github.com/hub4j/github-api/blob/main/src/main/java/org/kohsuke/github/GHObject.java#L98-L100
https://github.com/hub4j/github-api/blob/main/src/main/java/org/kohsuke/github/GHObject.java#L31
private String url;
it is trying to get url data from payload object of
GHRepository
https://github.com/go-gitea/gitea/blob/main/modules/structs/repo.go#L50-L110
but in Repository struct there don't have any url variable
I test it adding the variable and it's now not showing NullPointerException on jenkins server.
Screenshots
No response
The text was updated successfully, but these errors were encountered: