mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-25 00:11:52 +08:00
fix: custom shell NPE
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ public class ListenerGenerator {
|
|||||||
"getResponseFromRequest", newClassName, ShellCommonUtil.class.getName()))
|
"getResponseFromRequest", newClassName, ShellCommonUtil.class.getName()))
|
||||||
.visit(Advice.to(implInterceptor).on(named("getResponseFromRequest")));
|
.visit(Advice.to(implInterceptor).on(named("getResponseFromRequest")));
|
||||||
|
|
||||||
boolean methodNotFound = TypeDescription.ForLoadedType.of(targetClass)
|
boolean methodNotFound = targetClass != null && TypeDescription.ForLoadedType.of(targetClass)
|
||||||
.getDeclaredMethods()
|
.getDeclaredMethods()
|
||||||
.filter(named("getFieldValue")
|
.filter(named("getFieldValue")
|
||||||
.and(takesArguments(Object.class, String.class)))
|
.and(takesArguments(Object.class, String.class)))
|
||||||
|
|||||||
Reference in New Issue
Block a user