Closed
Description
Describe the bug
A clear and concise description of what the bug is.
Try to call getRepository
on an issue instantiated from a getContent
call on a GHProjectCard
throws an NPE.
val gitHub = GitHubBuilder.fromPropertyFile().build()
println(gitHub.myself)
val project = gitHub.getOrganization(organization).listProjects().single { it.number == projectNumber }
val issues = project.listColumns().flatMap { ghProjectColumn ->
println("Scanning column: ${ghProjectColumn.name}")
ghProjectColumn.listCards().mapNotNull { ghProjectCard ->
ghProjectCard.content?.run {
SecurityBoardIssue(
title = title,
dateCreated = createdAt,
column = ghProjectColumn.name,
repository = repository.name // throws NPE
)
}
}
}
Expected behavior
Should be able to determine the repository that a project card originates from.