Skip to content

Commit

Permalink
add some static/temporary logging to see what is going on
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 17, 2024
1 parent 980f08c commit 38e9ce5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions core/src/main/java/lucee/runtime/type/EnvUDF.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ public EnvUDF() {// needed for externalize
EnvUDF(UDFProperties properties) {
super(properties);
PageContext pc = ThreadLocalPageContext.get();
if (pc == null) {
print.e(Thread.currentThread().getName() + " EnvUDF");
System.exit(0);
}
if (pc.undefinedScope().getCheckArguments()) {
this.variables = new ClosureScope(pc, pc.argumentsScope(), pc.localScope(), pc.variablesScope());
try {
if (pc.undefinedScope().getCheckArguments()) {
this.variables = new ClosureScope(pc, pc.argumentsScope(), pc.localScope(), pc.variablesScope());
}
else {
this.variables = pc.variablesScope();
variables.setBind(true);
}
}
else {
this.variables = pc.variablesScope();
variables.setBind(true);
catch (NullPointerException e) {
print.e(Thread.currentThread().getName() + " EnvUDF");
throw e;
}
this.applicationContext = pc.getApplicationContext();
}
Expand Down

0 comments on commit 38e9ce5

Please sign in to comment.