diff options
| -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) | |||
| 40 | do { | 40 | do { |
| 41 | subnode = NULL; | 41 | subnode = NULL; |
| 42 | plist_array_next_item(node, iter, &subnode); | 42 | plist_array_next_item(node, iter, &subnode); |
| 43 | array.push_back( Node::FromPlist(subnode, _this) ); | 43 | if (subnode) { |
| 44 | array.push_back( Node::FromPlist(subnode, _this) ); | ||
| 45 | } | ||
| 44 | } while (subnode); | 46 | } while (subnode); |
| 45 | free(iter); | 47 | free(iter); |
| 46 | } | 48 | } |
