Pass through null LaunchOption structs to standard forEach.

Change-Id: I4dcde6996400207c7e361ff4b7723ec7db832e80
This commit is contained in:
Tim Murray
2013-02-12 16:22:34 -08:00
parent 005f6f6077
commit ba9dd06176

View File

@@ -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);