diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-05-30 12:08:46 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-05-30 12:08:46 -0400 |
| commit | 0619717f38a26879b08d18029c86847e88b3df8d (patch) | |
| tree | d71e1a14d2a3f7990203dd3e0e9ebefb95865d71 /MediaBrowser.Server.Implementations/Session/SessionManager.cs | |
| parent | 1ef5c88fc20d2c84c6a50a7a27aedd41ba3891e2 (diff) | |
ignore socket error
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/SessionManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Session/SessionManager.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/SessionManager.cs b/MediaBrowser.Server.Implementations/Session/SessionManager.cs index 77843ef6b..0dabcac4b 100644 --- a/MediaBrowser.Server.Implementations/Session/SessionManager.cs +++ b/MediaBrowser.Server.Implementations/Session/SessionManager.cs @@ -1748,6 +1748,11 @@ namespace MediaBrowser.Server.Implementations.Session public void ReportNowViewingItem(string sessionId, string itemId) { + if (string.IsNullOrWhiteSpace(itemId)) + { + throw new ArgumentNullException("itemId"); + } + var item = _libraryManager.GetItemById(new Guid(itemId)); var info = GetItemInfo(item, null, null); |
