Skip to content

Fix build warnings

Fix build warnings #80

Re-run triggered January 20, 2025 16:35
Status Failure
Total duration 10m 10s
Artifacts 4

build-test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 62 warnings
build-desktop-mac
Process completed with exit code 3.
build-desktop-mac
Process completed with exit code 3.
build-desktop-mac
Process completed with exit code 3.
build-desktop-mac
Process completed with exit code 3.
test-desktop
Process completed with exit code 1.
build-desktop-mac: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L143
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
build-desktop-mac: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L150
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-mac: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L231
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-mac: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L270
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-mac: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L340
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
build-desktop-mac: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L477
Possible null reference argument for parameter 'str' in 'OutPoint OutPoint.Parse(string str)'.
build-desktop-mac: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L478
Possible null reference argument for parameter 'hex' in 'Script Script.FromHex(string hex)'.
build-desktop-mac: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L523
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-desktop-mac: BTCPayApp.Core/Wallet/LightningNodeService.cs#L84
Dereference of a possibly null reference.
build-desktop-mac: BTCPayApp.Core/Wallet/LightningNodeService.cs#L90
Dereference of a possibly null reference.
build-desktop-linux
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build-desktop-linux: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L143
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
build-desktop-linux: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L150
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-linux: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L231
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-linux: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L270
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-linux: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L340
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
build-desktop-linux: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L477
Possible null reference argument for parameter 'str' in 'OutPoint OutPoint.Parse(string str)'.
build-desktop-linux: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L478
Possible null reference argument for parameter 'hex' in 'Script Script.FromHex(string hex)'.
build-desktop-linux: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L523
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-desktop-linux: BTCPayApp.Core/Wallet/LightningNodeService.cs#L84
Dereference of a possibly null reference.
build-desktop-linux: BTCPayApp.Core/Wallet/LightningNodeService.cs#L90
Dereference of a possibly null reference.
test-desktop
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-desktop: BTCPayApp.Core/BTCPayServer/BTCPayConnectionManager.cs#L65
Non-nullable property 'ReportedNodeInfo' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
test-desktop: BTCPayApp.Core/BTCPayServer/BTCPayConnectionManager.cs#L103
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L143
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L150
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
test-desktop: BTCPayApp.Core/DatabaseConfigProvider.cs#L134
Possible null reference assignment.
test-desktop: BTCPayApp.Core/JsonConverters/DateTimeToUnixTimeConverter.cs#L17
Possible null reference argument for parameter 's' in 'long long.Parse(string s)'.
test-desktop: BTCPayApp.Core/Data/TriggerRecord.cs#L5
Non-nullable property 'name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
test-desktop: BTCPayApp.Core/Data/TriggerRecord.cs#L6
Non-nullable property 'sql' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
test-desktop: BTCPayApp.Core/LSP/JIT/VoltageFlow2Jit.cs#L66
Possible null reference return.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L231
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L143
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L150
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L231
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L270
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L340
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L477
Possible null reference argument for parameter 'str' in 'OutPoint OutPoint.Parse(string str)'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L478
Possible null reference argument for parameter 'hex' in 'Script Script.FromHex(string hex)'.
test-desktop: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L523
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
test-desktop: BTCPayApp.Core/Wallet/LightningNodeService.cs#L84
Dereference of a possibly null reference.
test-desktop: BTCPayApp.Core/Wallet/LightningNodeService.cs#L90
Dereference of a possibly null reference.
build-desktop-win: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L143
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
build-desktop-win: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L150
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-win: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L231
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-win: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L270
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-desktop-win: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L340
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
build-desktop-win: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L477
Possible null reference argument for parameter 'str' in 'OutPoint OutPoint.Parse(string str)'.
build-desktop-win: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L478
Possible null reference argument for parameter 'hex' in 'Script Script.FromHex(string hex)'.
build-desktop-win: BTCPayApp.Core/DatabaseConfigProvider.cs#L134
Possible null reference assignment.
build-desktop-win: BTCPayApp.Core/Data/TriggerRecord.cs#L5
Non-nullable property 'name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build-desktop-win: BTCPayApp.Core/Data/TriggerRecord.cs#L6
Non-nullable property 'sql' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build-android: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L143
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
build-android: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L150
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-android: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L231
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-android: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L270
Nullability of reference types in value of type 'Dictionary<string, DerivationItem>' doesn't match target type 'Dictionary<string, DerivationItem?>'.
build-android: BTCPayApp.Core/Wallet/OnChainWalletManager.cs#L340
Possible null reference argument for parameter 'source' in 'bool Enumerable.Contains<string?>(IEnumerable<string?> source, string? value)'.
build-android: BTCPayApp.Core/BTCPayServer/BTCPayConnectionManager.cs#L65
Non-nullable property 'ReportedNodeInfo' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build-android: BTCPayApp.Core/BTCPayServer/BTCPayConnectionManager.cs#L103
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-android: BTCPayApp.Core/DatabaseConfigProvider.cs#L134
Possible null reference assignment.
build-android: BTCPayApp.Core/BTCPayServer/BTCPayConnectionManager.cs#L399
Dereference of a possibly null reference.
build-android: BTCPayApp.Core/Data/TriggerRecord.cs#L5
Non-nullable property 'name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Artifacts

Produced during runtime
Name Size
android build
52.9 MB
windows build
117 MB