diff --git a/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt b/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt
index c8b40e8a93dce..2364e12df4d86 100644
--- a/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt
+++ b/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt
@@ -80,12 +80,12 @@ internal object ReportTableModelMapper {
it.summary.issues
}
- val packageForId = ortResult.getPackageOrProject(id)?.metadata
+ val pkg = ortResult.getPackageOrProject(id)?.metadata
val row = DependencyRow(
id = id,
- sourceArtifact = packageForId?.sourceArtifact.orEmpty(),
- vcsInfo = packageForId?.vcsProcessed.orEmpty(),
+ sourceArtifact = pkg?.sourceArtifact.orEmpty(),
+ vcsInfo = pkg?.vcsProcessed.orEmpty(),
scopes = scopesForDependencies[id].orEmpty().toSortedMap(),
concludedLicense = concludedLicense,
declaredLicenses = declaredLicenses,