User: rednesto Date: 07 Jan 24 11:30 Revision: 09d6a08c615aca9f31374eaa7df258def63a899b Summary: Properly handle PlatformType constants removal TeamCity URL: http://ci.mcdev.io:80/viewModification.html?tab=vcsModificationFiles&modId=8967&personal=false Index: src/main/kotlin/platform/PlatformType.kt =================================================================== --- src/main/kotlin/platform/PlatformType.kt (revision 1984f7dbe72500baf762a239e34d6ee21ced7799) +++ src/main/kotlin/platform/PlatformType.kt (revision 09d6a08c615aca9f31374eaa7df258def63a899b) @@ -81,8 +81,10 @@ } companion object { - fun removeParents(types: MutableSet) = - types.filter { type -> type.children.isEmpty() || types.none { type.children.contains(it) } }.toHashSet() + fun removeParents(types: Set) = + types.filterNotNull() + .filter { type -> type.children.isEmpty() || types.none { type.children.contains(it) } } + .toHashSet() fun fromLibraryKind(kind: LibraryKind) = when (kind) { BUKKIT_LIBRARY_KIND -> BUKKIT