Skip to content

Commit

Permalink
catch load invalid class
Browse files Browse the repository at this point in the history
  • Loading branch information
cathor01 committed Dec 23, 2019
1 parent b0f0b03 commit 6f7bf19
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,13 @@ public void onCreate() {
@Override
public void run() {
try {
// 搜索下内部类
ClassUtil.initClasses(LauncherApplication.this, null);

try {
// 搜索下内部类
ClassUtil.initClasses(LauncherApplication.this, null);
} catch (Throwable t) {
LogUtil.e(TAG, "加载类失败, " + t.getMessage(), t);
}

// 初始化基础服务
registerServices();

Expand Down

0 comments on commit 6f7bf19

Please sign in to comment.