diff options
| author | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-03-25 19:16:12 +0100 |
|---|---|---|
| committer | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-03-25 19:16:12 +0100 |
| commit | d1fe28fac6ebd178c1ae450f030a1952f5edfaed (patch) | |
| tree | 56b639d7098c1a8a03575a93e9f0a11589ec8b15 | |
| parent | 37ff36226bbd4c942b87e1bf1d47682b78098868 (diff) | |
Check for null before disposing
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 35b2cba9f..d6a572818 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -1803,7 +1803,7 @@ namespace Emby.Server.Implementations } _userRepository?.Dispose(); - _displayPreferencesRepository.Dispose(); + _displayPreferencesRepository?.Dispose(); } _userRepository = null; |
