mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-09 09:27:20 +00:00
fix(android): support setting path null
This commit is contained in:
@@ -33,8 +33,11 @@ class PathParser {
|
|||||||
|
|
||||||
static Path parse(String d) {
|
static Path parse(String d) {
|
||||||
elements = new ArrayList<>();
|
elements = new ArrayList<>();
|
||||||
char prev_cmd = ' ';
|
|
||||||
mPath = new Path();
|
mPath = new Path();
|
||||||
|
if(d == null){
|
||||||
|
return mPath;
|
||||||
|
}
|
||||||
|
char prev_cmd = ' ';
|
||||||
l = d.length();
|
l = d.length();
|
||||||
s = d;
|
s = d;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user