Skip to content

Null reference warning fixes #57

Null reference warning fixes

Null reference warning fixes #57

Triggered via push April 25, 2024 23:45
Status Failure
Total duration 3m 9s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 30 warnings
ubuntu-22
Process completed with exit code 1.
windows-server-2022
Process completed with exit code 1.
macOS-12
Process completed with exit code 1.
ubuntu-22: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector2.cs#L117
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
ubuntu-22: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L242
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
ubuntu-22: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L364
Nullability of reference types in type of parameter 'format' of 'string Vector3.ToString(string format, IFormatProvider formatProvider)' doesn't match implicitly implemented member 'string IFormattable.ToString(string? format, IFormatProvider? formatProvider)' (possibly because of nullability attributes).
ubuntu-22: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L364
Nullability of reference types in type of parameter 'formatProvider' of 'string Vector3.ToString(string format, IFormatProvider formatProvider)' doesn't match implicitly implemented member 'string IFormattable.ToString(string? format, IFormatProvider? formatProvider)' (possibly because of nullability attributes).
ubuntu-22: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/EntityBase.cs#L17
Non-nullable property 'Parent' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
ubuntu-22: Pulsar4X/Pulsar4X.OrbitalMath/OrbitalMath.cs#L1445
Field 'OrbitalMath.Orbit.T' is never assigned to, and will always have its default value 0
ubuntu-22: Pulsar4X/Pulsar4X.OrbitalMath/OrbitalMath.cs#L1444
Field 'OrbitalMath.Orbit.position' is never assigned to, and will always have its default value
ubuntu-22: Pulsar4X/GameEngine/Engine/Processors/PulseActionProcessor.cs#L35
Possible null reference argument for parameter 'game' in 'void InterSystemJumpProcessor.JumpOut(Game game, SystemEntityJumpPair jumpPair)'.
ubuntu-22: Pulsar4X/GameEngine/Engine/Processors/PulseActionProcessor.cs#L36
Possible null reference argument for parameter 'game' in 'void InterSystemJumpProcessor.JumpIn(Game game, SystemEntityJumpPair jumpPair)'.
windows-server-2022: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector2.cs#L117
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
windows-server-2022: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L242
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
windows-server-2022: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L364
Nullability of reference types in type of parameter 'format' of 'string Vector3.ToString(string format, IFormatProvider formatProvider)' doesn't match implicitly implemented member 'string IFormattable.ToString(string? format, IFormatProvider? formatProvider)' (possibly because of nullability attributes).
windows-server-2022: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L364
Nullability of reference types in type of parameter 'formatProvider' of 'string Vector3.ToString(string format, IFormatProvider formatProvider)' doesn't match implicitly implemented member 'string IFormattable.ToString(string? format, IFormatProvider? formatProvider)' (possibly because of nullability attributes).
windows-server-2022: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/EntityBase.cs#L17
Non-nullable property 'Parent' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
windows-server-2022: Pulsar4X/Pulsar4X.OrbitalMath/OrbitalMath.cs#L1444
Field 'OrbitalMath.Orbit.position' is never assigned to, and will always have its default value
windows-server-2022: Pulsar4X/Pulsar4X.OrbitalMath/OrbitalMath.cs#L1445
Field 'OrbitalMath.Orbit.T' is never assigned to, and will always have its default value 0
windows-server-2022: Pulsar4X/GameEngine/FeatureSets/Sensors/SensorEntityFactory.cs#L94
Cannot convert null literal to non-nullable reference type.
macOS-12: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector2.cs#L117
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
macOS-12: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L242
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
macOS-12: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L364
Nullability of reference types in type of parameter 'format' of 'string Vector3.ToString(string format, IFormatProvider formatProvider)' doesn't match implicitly implemented member 'string IFormattable.ToString(string? format, IFormatProvider? formatProvider)' (possibly because of nullability attributes).
macOS-12: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/Vector3.cs#L364
Nullability of reference types in type of parameter 'formatProvider' of 'string Vector3.ToString(string format, IFormatProvider formatProvider)' doesn't match implicitly implemented member 'string IFormattable.ToString(string? format, IFormatProvider? formatProvider)' (possibly because of nullability attributes).
macOS-12: Pulsar4X/Pulsar4X.OrbitalMath/DataStructures/EntityBase.cs#L17
Non-nullable property 'Parent' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
macOS-12: Pulsar4X/Pulsar4X.OrbitalMath/OrbitalMath.cs#L1444
Field 'OrbitalMath.Orbit.position' is never assigned to, and will always have its default value
macOS-12: Pulsar4X/Pulsar4X.OrbitalMath/OrbitalMath.cs#L1445
Field 'OrbitalMath.Orbit.T' is never assigned to, and will always have its default value 0
macOS-12: Pulsar4X/GameEngine/Engine/Processors/PulseActionProcessor.cs#L35
Possible null reference argument for parameter 'game' in 'void InterSystemJumpProcessor.JumpOut(Game game, SystemEntityJumpPair jumpPair)'.
macOS-12: Pulsar4X/GameEngine/Engine/Processors/PulseActionProcessor.cs#L36
Possible null reference argument for parameter 'game' in 'void InterSystemJumpProcessor.JumpIn(Game game, SystemEntityJumpPair jumpPair)'.
macOS-12: Pulsar4X/GameEngine/FeatureSets/Sensors/SensorEntityFactory.cs#L59
Possible null reference return.