diff --git a/ApiClient.js b/ApiClient.js index c937c28ee6..a4c4d97830 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -223,6 +223,9 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi if (!userId) { throw new Error("null userId"); } + if (!itemId) { + throw new Error("null itemId"); + } var url = self.getUrl("Users/" + userId + "/Items/" + itemId); diff --git a/dashboard-ui/advancedserversettings.html b/dashboard-ui/advancedserversettings.html index cbe39b4aa4..2791240a81 100644 --- a/dashboard-ui/advancedserversettings.html +++ b/dashboard-ui/advancedserversettings.html @@ -19,31 +19,31 @@