diff --git a/src/Artemis.Storage/Migrations/M0021GradientNodes.cs b/src/Artemis.Storage/Migrations/M0021GradientNodes.cs index 4d701ef24..c89801fab 100644 --- a/src/Artemis.Storage/Migrations/M0021GradientNodes.cs +++ b/src/Artemis.Storage/Migrations/M0021GradientNodes.cs @@ -67,7 +67,7 @@ public class M0021GradientNodes : IStorageMigration List profiles = repository.Query().ToList(); foreach (ProfileEntity profileEntity in profiles) { - foreach (LayerEntity layer in profileEntity.Layers) + foreach (LayerEntity layer in profileEntity.Layers.Where(le => le.LayerBrush != null)) MigrateDataBinding(layer.LayerBrush.PropertyGroup); repository.Update(profileEntity);