fix: context not found test not work

This commit is contained in:
ReaJason
2026-01-12 01:23:14 +08:00
parent 3e70d4acb9
commit f4a5dd3949
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) {