fix: context not found test not work

This commit is contained in:
ReaJason
2026-01-12 02:12:34 +08:00
parent fa92930353
commit 054e22bc3d
32 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ try {
} catch (Throwable throwable) {
msg += "context error: " + getErrorMessage(throwable);
}
if (contexts == null) {
if (contexts == null || contexts.isEmpty()) {
msg += "context not found";
} else {
for (Object context : contexts) {