Only add the first path group if it is non-null
Fixes
@@ -104,8 +104,10 @@ abstract class BaseStrokeContent implements DrawingContent, BaseKeyframeAnimatio
currentPathGroup.paths.add((PathContent) content);
}
}
+ if (currentPathGroup != null) {
pathGroups.add(currentPathGroup);
}
+ }
@Override public void draw(Canvas canvas, Matrix parentMatrix, int parentAlpha) {
int alpha = (int) ((parentAlpha / 255f * opacityAnimation.getValue() / 100f) * 255);
