diff options
Diffstat (limited to 'src/Array.cpp')
-rw-r--r-- | src/Array.cpp | 4 |
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); } |