We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222eb98 commit 49a8912Copy full SHA for 49a8912
pkgs/native_assets_cli/lib/src/user_defines.dart
@@ -38,7 +38,9 @@ extension PackageUserDefinesSyntax on PackageUserDefines {
38
workspacePubspec: workspacePubspec?.toSyntax(),
39
);
40
// Fallback behavior for old hooks: write user-defines here.
41
- result.json.addAll(workspacePubspec!.defines);
+ if (workspacePubspec != null) {
42
+ result.json.addAll(workspacePubspec!.defines);
43
+ }
44
return result;
45
}
46
0 commit comments