diff --git a/engine/runtime-instrument-common/src/main/java/org/enso/interpreter/service/ExecutionService.java b/engine/runtime-instrument-common/src/main/java/org/enso/interpreter/service/ExecutionService.java index 042d93c8cc5..bf30007acf9 100644 --- a/engine/runtime-instrument-common/src/main/java/org/enso/interpreter/service/ExecutionService.java +++ b/engine/runtime-instrument-common/src/main/java/org/enso/interpreter/service/ExecutionService.java @@ -775,7 +775,7 @@ public final class ExecutionService { if (preAppliedArguments == null) { preAppliedArguments = new Object[functionSchema.getArgumentsCount()]; } - boolean isStatic = preAppliedArguments[0] instanceof Type; + boolean isStatic = preAppliedArguments.length == 0 || preAppliedArguments[0] instanceof Type; int selfArgumentPosition = isStatic ? -1 : 0; int[] notAppliedArguments = new int[functionSchema.getArgumentsCount()]; int notAppliedArgumentsLength = 0;