Skip to content

Commit

Permalink
Merge pull request #81 from useocl/fix_operationcall
Browse files Browse the repository at this point in the history
fix: handling of result values for operation calls
  • Loading branch information
h-man2 authored Jun 14, 2024
2 parents 62850ef + ff27827 commit 3067dd1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public Value eval(EvalContext ctx) {

MOperationCall operationCall = new MOperationCall(this, self, constructor, arguments);
operationCall.setPreferredPPCHandler(ExpressionPPCHandler.getDefaultOutputHandler());
operationCall.setResultValue(result);

MSystem system = ctx.postState().system();
try {
Expand All @@ -93,7 +94,7 @@ public Value eval(EvalContext ctx) {
} finally {
try {
if (operationCall.enteredSuccessfully()) {
system.exitQueryOperation(ctx, result);
system.exitQueryOperation(ctx);
}
} catch (MSystemException ignored) {
}
Expand Down

0 comments on commit 3067dd1

Please sign in to comment.