Skip to content

Commit

Permalink
Merge pull request #362 from mitchyboy9/master
Browse files Browse the repository at this point in the history
Prevent NoClassDefFoundError crashing app using Sugar
  • Loading branch information
sibelius committed Dec 7, 2015
2 parents f8eb02e + 05051a2 commit 7f881a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/com/orm/util/ReflectionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private static Class getDomainClass(String className, Context context) {
Class<?> discoveredClass = null;
try {
discoveredClass = Class.forName(className, true, context.getClass().getClassLoader());
} catch (ClassNotFoundException e) {
} catch (Throwable e) {
Log.e("Sugar", e.getMessage());
}

Expand Down

0 comments on commit 7f881a8

Please sign in to comment.