Skip to content

Commit

Permalink
test reverting to testbox 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 17, 2024
1 parent 5ed2d71 commit 983f241
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions core/src/main/java/lucee/runtime/type/EnvUDF.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.io.ObjectInput;
import java.io.ObjectOutput;

import lucee.print;
import lucee.runtime.Component;
import lucee.runtime.PageContext;
import lucee.runtime.PageContextImpl;
Expand All @@ -49,21 +48,12 @@ public EnvUDF() {// needed for externalize
EnvUDF(UDFProperties properties) {
super(properties);
PageContext pc = ThreadLocalPageContext.get();
try {
if (pc.undefinedScope().getCheckArguments()) {
this.variables = new ClosureScope(pc, pc.argumentsScope(), pc.localScope(), pc.variablesScope());
}
else {
this.variables = pc.variablesScope();
variables.setBind(true);
}
if (pc.undefinedScope().getCheckArguments()) {
this.variables = new ClosureScope(pc, pc.argumentsScope(), pc.localScope(), pc.variablesScope());
}
catch (NullPointerException e) {

print.e(Thread.currentThread().getName() + " EnvUDF");
print.e(e);
print.e(ThreadLocalPageContext.stacktraces.get(Thread.currentThread().getName()));
throw e;
else {
this.variables = pc.variablesScope();
variables.setBind(true);
}
this.applicationContext = pc.getApplicationContext();
}
Expand Down

0 comments on commit 983f241

Please sign in to comment.