Fixed NPE in database migration

This commit is contained in:
Trisha Anand 2020-12-29 17:06:30 +05:30
parent 40026cf441
commit ea366b1d29

View File

@ -1545,7 +1545,7 @@ public class DatabaseChangelog {
List<Property> properties = datasource.getDatasourceConfiguration().getProperties();
Optional<Property> isSendSessionEnabledOptional = properties
.stream()
.filter(property -> property.getKey().equals(keyName))
.filter(property -> keyName.equals(property.getKey()))
.findFirst();
if (!isSendSessionEnabledOptional.isPresent()) {