booster icon indicating copy to clipboard operation
booster copied to clipboard

Editing view ID causes NPE

Open ghost opened this issue 4 years ago • 1 comments

  • 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 = ???

ghost avatar Nov 11 '19 09:11 ghost

This issue might be caused by the build cache, it's acceptable

johnsonlee avatar Nov 11 '19 11:11 johnsonlee