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 Jan 29, 2025
1 parent 1dd6438 commit 81dd7c9
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 81dd7c9

Please sign in to comment.