Skip to content

Commit

Permalink
try catch check
Browse files Browse the repository at this point in the history
  • Loading branch information
nnjun committed Feb 19, 2022
1 parent aec56fa commit 437f10b
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,12 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
if (bFieldCheckNotProcess != null) {
// startsWith "_check_"
name = name.substring("_check_".length());
Reflector on = Reflector.on(aClass).field(name);
return on.getField();
try {
Reflector on = Reflector.on(aClass).field(name);
return on.getField();
} catch (Throwable ignored) {
return null;
}
}

Class<?>[] paramClass = getParamClass(method);
Expand All @@ -127,8 +131,11 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
if (bMethodCheckNotProcess != null) {
// startsWith "_check_"
name = name.substring("_check_".length());
Reflector on = Reflector.on(aClass).method(name, paramClass);
return on.getMethod();
try {
return Reflector.on(aClass).method(name, paramClass).getMethod();
} catch (Throwable ignored) {
return null;
}
}

// method
Expand Down

0 comments on commit 437f10b

Please sign in to comment.