Skip to content

Commit 0021832

Browse files
Merge pull request #943 from tianlu-root/master
fix: RequestContext bug fix
2 parents 3beac5c + 5be680e commit 0021832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/datart/core/common/RequestContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void clean() {
4949
}
5050

5151
public static void setSql(String sqlStr) {
52-
if (scriptPermission.get()) {
52+
if (scriptPermission.get() != null && scriptPermission.get()) {
5353
sql.set(sqlStr);
5454
}
5555
}

0 commit comments

Comments
 (0)