diff --git a/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java b/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java index 677e5bc..2d06262 100644 --- a/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java +++ b/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/CommunityBranchLoaderDelegate.java @@ -102,7 +102,7 @@ private static Branch createPullRequest(ScannerReport.Metadata metadata, DbClien private static Branch createBranch(DbClient dbClient, String branchName, String projectUuid, String targetBranch) { String targetUuid; if (null == targetBranch) { - Optional branchDto = findBranchByUuid(dbClient, projectUuid); + Optional branchDto = findBranchByUuid(projectUuid, dbClient); if (branchDto.isPresent()) { targetUuid = branchDto.get().getUuid(); } else {