diff --git a/plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt b/plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt index 3e1724651dee8..cb63226fe21a0 100644 --- a/plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt +++ b/plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt @@ -287,7 +287,7 @@ private fun parseLockfile(podfileLock: File): LockfileData { sourceArtifact = RemoteArtifact.EMPTY, vcs = VcsInfo(VcsType.GIT, url, revision) ) - }?.toMap() + }.orEmpty().toMap() fun createPackageReference(name: String): PackageReference = PackageReference( @@ -308,5 +308,5 @@ private fun parseLockfile(podfileLock: File): LockfileData { createPackageReference(name) } - return LockfileData(dependencies, externalSources.orEmpty()) + return LockfileData(dependencies, externalSources) }