Skip to content

Commit

Permalink
[Validator] Fix IllegalAccessException.
Browse files Browse the repository at this point in the history
  • Loading branch information
ragunathjawahar committed Jul 31, 2015
1 parent f2dc8f3 commit f8e96e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,9 @@ private ViewDataAdapter getDataAdapter(final Class<? extends Annotation> annotat
private Context getContext(final Field viewField) {
Context context = null;
try {
if (!viewField.isAccessible()) {
viewField.setAccessible(true);
}
View view = (View) viewField.get(mController);
context = view.getContext();
} catch (IllegalAccessException e) {
Expand Down

0 comments on commit f8e96e8

Please sign in to comment.