booster
booster copied to clipboard
Editing view ID causes NPE
- System version macOS 10.15.1
- Java version 1.8
- Gradle version 5.4.1
- Android Gradle plugin version 3.5.2
- Booster version 0.26.1
- Stack traces n/a
- Example
<!-- Before -->
<ImageView
android:id="@+id/iv_before"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
// Kotlin code, runs well
iv_before.xxx = ???
<!-- After id changed-->
<ImageView
android:id="@+id/iv_content"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
// Kotlin code, throws NPE, rebuild project will solve this problem
iv_after.xxx = ???
This issue might be caused by the build cache, it's acceptable