diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index c9ff6507ef..587f51fff9 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -15,6 +15,8 @@ var libtoaster = (function (){ * arg of the item. */ function _makeTypeahead (jQElement, xhrUrl, xhrParams, selectedCB) { + if (!xhrUrl || xhrUrl.length === 0) + throw("No url to typeahead supplied"); jQElement.typeahead({ source: function(query, process){