Skip to content

Commit 194f0e2

Browse files
committed
Fix check any
1 parent e803a67 commit 194f0e2

File tree

1 file changed

+3
-0
lines changed
  • library/src/main/java/com/omega_r/bind/model/binders

1 file changed

+3
-0
lines changed

library/src/main/java/com/omega_r/bind/model/binders/Binder.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ abstract class Binder<V : View, M> {
4141
@Suppress("UNCHECKED_CAST")
4242
protected fun <T> Any?.findValue(item: Any?, properties: Array<out KProperty<*>>): T? {
4343
var obj: Any? = item
44+
if (obj == null || obj::class.java === Any::class.java) {
45+
return null
46+
}
4447
for (property in properties) {
4548
obj = property.call(obj)
4649
if (obj == null) {

0 commit comments

Comments
 (0)