Merge "Frameworks/base: Check before foreach in Script"
This commit is contained in:
@@ -239,8 +239,10 @@ public class Script extends BaseObj {
|
|||||||
FieldPacker v, LaunchOptions sc) {
|
FieldPacker v, LaunchOptions sc) {
|
||||||
// TODO: Is this necessary if nScriptForEach calls validate as well?
|
// TODO: Is this necessary if nScriptForEach calls validate as well?
|
||||||
mRS.validate();
|
mRS.validate();
|
||||||
for (Allocation ain : ains) {
|
if (ains != null) {
|
||||||
mRS.validateObject(ain);
|
for (Allocation ain : ains) {
|
||||||
|
mRS.validateObject(ain);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mRS.validateObject(aout);
|
mRS.validateObject(aout);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user