Skip to content

Commit

Permalink
add an additional null check
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri authored and gbrail committed Aug 8, 2024
1 parent cc302b4 commit 2f2cec0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rhino/src/main/java/org/mozilla/javascript/MemberBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ Object invoke(Object target, Object[] args) {
if (target instanceof Delegator) {
target = ((Delegator) target).getDelegee();
}
for (int i = 0; i < args.length; ++i) {
if (args[i] instanceof Delegator) {
args[i] = ((Delegator) args[i]).getDelegee();
if (args != null) {
for (int i = 0; i < args.length; ++i) {
if (args[i] instanceof Delegator) {
args[i] = ((Delegator) args[i]).getDelegee();
}
}
}

Expand Down

0 comments on commit 2f2cec0

Please sign in to comment.