浏览代码

Fix NullRefException

Bond_009 6 年之前
父节点
当前提交
76d3f60f06
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 3 2
      Emby.Dlna/DlnaManager.cs
  2. 1 1
      Emby.Server.Implementations/LiveTv/LiveTvManager.cs

+ 3 - 2
Emby.Dlna/DlnaManager.cs

@@ -530,7 +530,7 @@ namespace Emby.Dlna
             };
         }
     }
-
+    /*
     class DlnaProfileEntryPoint : IServerEntryPoint
     {
         private readonly IApplicationPaths _appPaths;
@@ -596,5 +596,6 @@ namespace Emby.Dlna
         public void Dispose()
         {
         }
-    }
+    }*/
 }
+

+ 1 - 1
Emby.Server.Implementations/LiveTv/LiveTvManager.cs

@@ -2400,7 +2400,7 @@ namespace Emby.Server.Implementations.LiveTv
             if (provider == null)
             {
                 throw new ResourceNotFoundException(
-                    string.Format("Couldn't find provider with name: '{0}' of type: '{1}'", provider.Name, provider.Type)
+                    string.Format("Couldn't find provider of type: '{0}'", info.Type)
                 );
             }