From 07ae24562375e2de134f04ac409fe27ef69675c9 Mon Sep 17 00:00:00 2001 From: Serkan Serttop Date: Thu, 22 Oct 2015 15:35:11 +0300 Subject: [PATCH] Fix missing handling of undefined items in pbxWriter.prototype.writeArray --- lib/pbxWriter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pbxWriter.js b/lib/pbxWriter.js index a65bcf1..b1d9bdf 100644 --- a/lib/pbxWriter.js +++ b/lib/pbxWriter.js @@ -180,6 +180,9 @@ pbxWriter.prototype.writeArray = function (arr, name) { for (i=0; i < arr.length; i++) { entry = arr[i] + if(!entry){ + continue; + } if (entry.value && entry.comment) { this.write('%s /* %s */,\n', entry.value, entry.comment); } else if (isObject(entry)) {