Skip to content

Commit 31c3b93

Browse files
author
Enguerrand ARMINJON WINDOWS
committed
fix-null-exception
1 parent 2c8f226 commit 31c3b93

File tree

1 file changed

+4
-1
lines changed
  • packages/vector_graphics_compiler/lib/src/svg

1 file changed

+4
-1
lines changed

packages/vector_graphics_compiler/lib/src/svg/parser.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,10 @@ class SvgParser {
895895
return false;
896896
}
897897
final ParentNode parent = _parentDrawables.last.drawable;
898-
final Path path = pathFunc(this)!;
898+
final Path? path = pathFunc(this);
899+
if (path == null) {
900+
return false;
901+
}
899902
final PathNode drawable = PathNode(path, _currentAttributes);
900903
checkForIri(drawable);
901904

0 commit comments

Comments
 (0)