$ diff Udf.java Udf.java.patch 91a92,96 > // Defualt, exec.currentScope and exec.globalScope are null. > if (exec.currentScope == null) { > exec.globalScope = new Scope(Scope.Type.GLOBAL); > exec.currentScope = exec.globalScope; > > }