Skip to content

Commit

Permalink
Inactionware#99 Fix output index invaid issue
Browse files Browse the repository at this point in the history
  • Loading branch information
minjing committed Mar 8, 2019
1 parent ac1af13 commit 64fc48b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,7 @@ private HeadAction(
this._id = ActionIdentify.toActionId(HeadAction.class);
this._outputMetas = new ActionOutputMeta[behaviorInputMetas.length];
Looper.on(behaviorInputMetas).foreachWithIndex((idx, inMeta) -> {
String outName = StringHelper.makeString("{}.{}", this._id.getName());
this._outputMetas[idx] = new ActionOutputMeta(inMeta.type(), outName);
this._outputMetas[idx] = new ActionOutputMeta(inMeta.type());
});
}

Expand Down Expand Up @@ -644,7 +643,7 @@ private IndexedOutput(
boolean found = false;
while (currentAction != null) {
if (currentAction.label().equals(label)) {
if (index >= currentAction.outputMetas().length) {
if (index < currentAction.outputMetas().length) {
found = true;
}
break;
Expand Down

0 comments on commit 64fc48b

Please sign in to comment.