Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 76e17c1

Browse files
committed
Nullsafe
1 parent 280fe49 commit 76e17c1

File tree

1 file changed

+1
-1
lines changed
  • grails-database-migration/src/main/groovy/org/grails/plugins/databasemigration/liquibase

1 file changed

+1
-1
lines changed

grails-database-migration/src/main/groovy/org/grails/plugins/databasemigration/liquibase/GroovyChange.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class GroovyChange extends AbstractChange {
9090
void load(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException {
9191
ctx = parsedNode.getChildValue(null, 'applicationContext', ApplicationContext)
9292
dataSourceName = parsedNode.getChildValue(null, DATA_SOURCE_NAME_KEY, String)
93-
if (dataSourceName.startsWith("dataSource_")) {
93+
if (dataSourceName?.startsWith("dataSource_")) {
9494
dataSourceName = dataSourceName.substring("dataSource_".length())
9595
}
9696

0 commit comments

Comments
 (0)