From a758688c52274aa5c62286bd701febebcc3d2c06 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Fri, 15 Jul 2016 12:03:15 +0200 Subject: [PATCH] U4-8730 MigrationRunner should check for migrations params to already be null #U4-8730 Fixed --- src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs b/src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs index 081865b9a1..51751b07ad 100644 --- a/src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs +++ b/src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs @@ -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; } ///