Skip to content

Commit

Permalink
Merge pull request #41 from imfms/bugfix-no_progress_listener_migrate…
Browse files Browse the repository at this point in the history
…_method_process_npe

bigfix-MigrationHelper_no_progress_listener_migrate_override_method_p…
  • Loading branch information
yuweiguocn authored Jan 12, 2018
2 parents 3287bb2 + 702acff commit ef7a58e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ public static void migrate(Database database, Class<? extends AbstractDao<?, ?>>
generateTempTables(database, daoClasses);
printLog("【Generate temp table】complete");

ReCreateAllTableListener listener = weakListener.get();
ReCreateAllTableListener listener = null;
if (weakListener != null) {
listener = weakListener.get();
}

if (listener != null) {
listener.onDropAllTables(database, true);
printLog("【Drop all table by listener】");
Expand Down

0 comments on commit ef7a58e

Please sign in to comment.