The Free Software Media System - Server Backend & API
Fix build
Bond_00940b9e7592f19
diff --git a/Emby.Dlna/ContentDirectory/StubType.cs b/Emby.Dlna/ContentDirectory/StubType.csindex a5116055d1..187dc1d75a 100644--- a/Emby.Dlna/ContentDirectory/StubType.cs+++ b/Emby.Dlna/ContentDirectory/StubType.cs@@ -1,6 +1,5 @@#pragma warning disable CS1591-namespace Emby.Dlna.ContentDirectory{/// <summary>diff --git a/Emby.Dlna/PlayTo/TransportState.cs b/Emby.Dlna/PlayTo/TransportState.csindex 1ca71283a8..2058e9dc79 100644--- a/Emby.Dlna/PlayTo/TransportState.cs+++ b/Emby.Dlna/PlayTo/TransportState.cs@@ -1,6 +1,5 @@#pragma warning disable CS1591-namespace Emby.Dlna.PlayTo{public enum TransportStatediff --git a/Jellyfin.Api/Controllers/ImageController.cs b/Jellyfin.Api/Controllers/ImageController.csindex dc36349704..a50d6e46bf 100644--- a/Jellyfin.Api/Controllers/ImageController.cs+++ b/Jellyfin.Api/Controllers/ImageController.cs@@ -113,7 +113,7 @@ namespace Jellyfin.Api.Controllersawait _userManager.ClearProfileImageAsync(user).ConfigureAwait(false);}- user.ProfileImage = new Data.Entities.ImageInfo(Path.Combine(userDataPath, "profile" + MimeTypes.ToExtension(mimeType)));+ user.ProfileImage = new Data.Entities.ImageInfo(Path.Combine(userDataPath, "profile" + MimeTypes.ToExtension(mimeType ?? string.Empty)));await _providerManager.SaveImage(memoryStream, mimeType, user.ProfileImage.Path)@@ -160,7 +160,7 @@ namespace Jellyfin.Api.Controllersawait _userManager.ClearProfileImageAsync(user).ConfigureAwait(false);}- user.ProfileImage = new Data.Entities.ImageInfo(Path.Combine(userDataPath, "profile" + MimeTypes.ToExtension(mimeType)));+ user.ProfileImage = new Data.Entities.ImageInfo(Path.Combine(userDataPath, "profile" + MimeTypes.ToExtension(mimeType ?? string.Empty)));await _providerManager.SaveImage(memoryStream, mimeType, user.ProfileImage.Path)