# Kotlin and Android Development featuring Jetpack: Transformations class doesn't seem to exist anymore (pp. 140-141

**URL:** <https://forum.devtalk.com/t/kotlin-and-android-development-featuring-jetpack-transformations-class-doesnt-seem-to-exist-anymore-pp-140-141/123519>\
**Category:** PragProg Customers\
**Tags:** book-kotlin-and-android-development-featuring-jetpack, errata\
**Created:** [7 September 2023 05:57 UTC](https://forum.devtalk.com/t/kotlin-and-android-development-featuring-jetpack-transformations-class-doesnt-seem-to-exist-anymore-pp-140-141/123519 "2023-09-07T05:57:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mfazio23](https://forum.devtalk.com/user_avatar/forum.devtalk.com/mfazio23/32/528_2.png) [@mfazio23](https://forum.devtalk.com/u/mfazio23)\
**Post date:** [1 October 2023 15:02 UTC](https://forum.devtalk.com/t/kotlin-and-android-development-featuring-jetpack-transformations-class-doesnt-seem-to-exist-anymore-pp-140-141/123519/6 "2023-10-01T15:02:47Z")

</div>

Sorry that I missed this before! I answered in [this post](https://forum.devtalk.com/t/kotlin-and-android-development-featuring-jetpack-cannot-reach-settings-fragment-in-penny-drop-p-177/125594/4), but I’ll note something similar here as well in case anyone else runs into this.

My take is that the unreachable code “error” is actually incorrect and just the linter getting confused by the nullability of `previousPlayer` and `currentPlayer`. If I put the same logic into a Kotlin command-line app, it works just fine, and if you refactor the `when` block to skip the subject, that _also_ works fine.

---

_[View the full topic](https://forum.devtalk.com/t/kotlin-and-android-development-featuring-jetpack-transformations-class-doesnt-seem-to-exist-anymore-pp-140-141/123519)._
