File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1040,6 +1040,11 @@ void Clip::SetJsonValue(const Json::Value root) {
1040
1040
1041
1041
// loop through effects
1042
1042
for (const auto existing_effect : root[" effects" ]) {
1043
+ // Skip NULL nodes
1044
+ if (existing_effect.isNull ()) {
1045
+ continue ;
1046
+ }
1047
+
1043
1048
// Create Effect
1044
1049
EffectBase *e = NULL ;
1045
1050
if (!existing_effect[" type" ].isNull ()) {
Original file line number Diff line number Diff line change @@ -1193,6 +1193,11 @@ void Timeline::SetJsonValue(const Json::Value root) {
1193
1193
1194
1194
// loop through clips
1195
1195
for (const Json::Value existing_clip : root[" clips" ]) {
1196
+ // Skip NULL nodes
1197
+ if (existing_clip.isNull ()) {
1198
+ continue ;
1199
+ }
1200
+
1196
1201
// Create Clip
1197
1202
Clip *c = new Clip ();
1198
1203
@@ -1220,6 +1225,11 @@ void Timeline::SetJsonValue(const Json::Value root) {
1220
1225
1221
1226
// loop through effects
1222
1227
for (const Json::Value existing_effect :root[" effects" ]) {
1228
+ // Skip NULL nodes
1229
+ if (existing_effect.isNull ()) {
1230
+ continue ;
1231
+ }
1232
+
1223
1233
// Create Effect
1224
1234
EffectBase *e = NULL ;
1225
1235
You can’t perform that action at this time.
0 commit comments