Skip to content

Commit

Permalink
fix(android): support setting path null
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloCore committed Jan 14, 2020
1 parent d12b01c commit 2d34734
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion android/src/main/java/com/horcrux/svg/PathParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ class PathParser {

static Path parse(String d) {
elements = new ArrayList<>();
char prev_cmd = ' ';
mPath = new Path();
if(d == null){
return mPath;
}
char prev_cmd = ' ';
l = d.length();
s = d;
i = 0;
Expand Down

0 comments on commit 2d34734

Please sign in to comment.