Skip to content

Commit

Permalink
issue #495: fix newDataIndex docTypes NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-vi committed Jul 12, 2023
1 parent 6abaa48 commit cba7349
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ private static void persistScheduler(
DataIndex oldDataIndex = scheduler.getOldDataIndex();
DataIndex newDataIndex = scheduler.getNewDataIndex();

if (oldDataIndex != null) {
if (oldDataIndex != null && newDataIndex != null) {
Set<DocType> docTypes = oldDataIndex.getDocTypes();
if (docTypes != null && !docTypes.isEmpty()) {
Set<DocType> refreshed = new LinkedHashSet<>();
Expand Down

0 comments on commit cba7349

Please sign in to comment.