Skip to content

Commit

Permalink
fix(android): fix crash when using window.add([]) with a null object (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga authored and hansemannn committed Feb 3, 2025
1 parent 31ae72d commit 506bad4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,11 @@ public void add(Object args)
if (arg instanceof TiViewProxy) {
add((TiViewProxy) arg);
} else {
Log.w(TAG, "add() unsupported array object: " + arg.getClass().getSimpleName());
if (arg == null) {
Log.w(TAG, "add() unsupported array object: null");
} else {
Log.w(TAG, "add() unsupported array object: " + arg.getClass().getSimpleName());
}
}
}
} else if (args instanceof TiViewProxy) {
Expand Down

0 comments on commit 506bad4

Please sign in to comment.