Skip to content

Commit

Permalink
fix ci failure
Browse files Browse the repository at this point in the history
  • Loading branch information
AssahBismarkabah committed Jan 10, 2025
1 parent 4d2c212 commit fd86b07
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,13 @@ private void setEventsEnabledWorkaround(RealmImport realmImport) {
if (realmImport.isEventsEnabled() != null) return;

Boolean existingEventsEnabled = realmRepository.get(realmImport.getRealm()).isEventsEnabled();
realmImport.setEventsEnabled(existingEventsEnabled);
if (existingEventsEnabled != null) {
realmImport.setEventsEnabled(existingEventsEnabled);
} else {
realmImport.setEventsEnabled(false);
logger.warn("Events enabled status is null for realm '{}'. " + "Setting to false by default.", realmImport.getRealm());
}

}

private void createRealm(RealmImport realmImport) {
Expand Down

0 comments on commit fd86b07

Please sign in to comment.