Skip to content

Commit

Permalink
Added fix for null ptr exception
Browse files Browse the repository at this point in the history
  • Loading branch information
satyamchaurasia committed Jul 28, 2024
1 parent 9117435 commit 46e4e5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public ResponseEntity<EventResponse> pullRequest(
.excludeFiles(controllerRequest.getExcludeFiles())
.bugTracker(bt)
.isPRCloseEvent(action.equalsIgnoreCase("closed"))
.isForked(event.getPullRequest().getHead().getRepo().getFork())
.isForked(event.getPullRequest().getHead().getRepo().getFork()!=null?event.getPullRequest().getHead().getRepo().getFork():false)
.filter(filter)
.thresholds(thresholdMap)
.organizationId(getOrganizationid(repository))
Expand Down

0 comments on commit 46e4e5e

Please sign in to comment.