Endpoints
[groupbasedpolicy.git] / groupbasedpolicy-ui / module / src / main / resources / gbp / endpoints / endpoints-list.service.js
index e678748b58530d5b2ec9864d8ee08039dfb23248..49f9a7b9e5c9066e55889ba7ede862f659845198 100644 (file)
@@ -26,7 +26,8 @@ define([], function () {
              */
             function setData(data) {
                 var self = this;
-                data.forEach(function (dataElement) {
+
+                data && data.forEach(function (dataElement) {
                     self.data.push(EndpointService.createObject(dataElement));
                 });
             }