Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Check for abstract members
Browse files Browse the repository at this point in the history
Refs #1647
  • Loading branch information
M66B committed May 8, 2014
1 parent 99906b0 commit 28cd997
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/biz/bokhorst/xprivacy/XPrivacy.java
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,12 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
// Hook members
for (Member member : listMember)
try {
XposedBridge.hookMethod(member, methodHook);
if (Modifier.isAbstract(member.getModifiers()))
Util.log(hook, Log.ERROR, String.format("isAbstract: ", member));
else
XposedBridge.hookMethod(member, methodHook);
} catch (NoSuchFieldError ex) {
Util.log(null, Log.WARN, ex.toString());
Util.log(hook, Log.WARN, ex.toString());
} catch (Throwable ex) {
mListHookError.add(ex.toString());
Util.bug(hook, ex);
Expand Down

0 comments on commit 28cd997

Please sign in to comment.