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

This commit is contained in:
Andreas Gampe
2015-03-16 19:17:44 +00:00
committed by Gerrit Code Review

View File

@@ -239,8 +239,10 @@ public class Script extends BaseObj {
FieldPacker v, LaunchOptions sc) {
// TODO: Is this necessary if nScriptForEach calls validate as well?
mRS.validate();
for (Allocation ain : ains) {
mRS.validateObject(ain);
if (ains != null) {
for (Allocation ain : ains) {
mRS.validateObject(ain);
}
}
mRS.validateObject(aout);