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

Commit f3e581c9 authored by Andreas Gampe's avatar Andreas Gampe Committed by Gerrit Code Review
Browse files

Merge "Frameworks/base: Check before foreach in Script"

parents 3d33314e c8ddcddd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -239,9 +239,11 @@ public class Script extends BaseObj {
                           FieldPacker v, LaunchOptions sc) {
        // TODO: Is this necessary if nScriptForEach calls validate as well?
        mRS.validate();
        if (ains != null) {
            for (Allocation ain : ains) {
                mRS.validateObject(ain);
            }
        }
        mRS.validateObject(aout);

        if (ains == null && aout == null) {