Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba9dd061 authored by Tim Murray's avatar Tim Murray
Browse files

Pass through null LaunchOption structs to standard forEach.

Change-Id: I4dcde6996400207c7e361ff4b7723ec7db832e80
parent 005f6f60
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -171,6 +171,11 @@ public class Script extends BaseObj {
            throw new RSIllegalArgumentException(
                "At least one of ain or aout is required to be non-null.");
        }

        if (sc == null) {
            forEach(slot, ain, aout, v);
            return;
        }
        int in_id = 0;
        if (ain != null) {
            in_id = ain.getID(mRS);