summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Array.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Array.cpp b/src/Array.cpp
index be7eb86..d739c64 100644
--- a/src/Array.cpp
+++ b/src/Array.cpp
@@ -40,7 +40,9 @@ static void array_fill(Array *_this, std::vector<Node*> &array, plist_t node)
do {
subnode = NULL;
plist_array_next_item(node, iter, &subnode);
- array.push_back( Node::FromPlist(subnode, _this) );
+ if (subnode) {
+ array.push_back( Node::FromPlist(subnode, _this) );
+ }
} while (subnode);
free(iter);
}