aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifier.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-04 10:19:46 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-04 10:19:46 -0400
commitc3f2021cadc56d4cca2be0ce855dac01830eb0b0 (patch)
treef51a96932b7868f723535be3e083beb911c93df2 /MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifier.cs
parentf031bb744b00d139a71036678abd6586e6595cb5 (diff)
left align web client content
Diffstat (limited to 'MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifier.cs')
-rw-r--r--MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifier.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifier.cs b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifier.cs
index cc3221711..43e968fa5 100644
--- a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifier.cs
+++ b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifier.cs
@@ -164,6 +164,12 @@ namespace MediaBrowser.Server.Implementations.EntryPoints.Notifications
var item = e.MediaInfo;
+ if (item == null)
+ {
+ _logger.Warn("PlaybackStart reported with null media info.");
+ return;
+ }
+
if (e.Item != null && e.Item.Parent == null)
{
// Don't report theme song or local trailer playback