U4-8730 MigrationRunner should check for migrations params to already be null

#U4-8730 Fixed
This commit is contained in:
Sebastiaan Janssen
2016-07-15 12:03:15 +02:00
parent 6f2aac14fc
commit a758688c52

View File

@@ -63,7 +63,7 @@ namespace Umbraco.Core.Persistence.Migrations
_targetVersion = targetVersion;
_productName = productName;
//ensure this is null if there aren't any
_migrations = migrations.Length == 0 ? null : migrations;
_migrations = migrations == null || migrations.Length == 0 ? null : migrations;
}
/// <summary>