Skip to content

Guard against if ipv4Gateway is nil, removed fore unwrap#524

Open
manojmahapatra wants to merge 1 commit intoapple:mainfrom
manojmahapatra:chore/handle-nil-ipv4address
Open

Guard against if ipv4Gateway is nil, removed fore unwrap#524
manojmahapatra wants to merge 1 commit intoapple:mainfrom
manojmahapatra:chore/handle-nil-ipv4address

Conversation

@manojmahapatra
Copy link

@manojmahapatra manojmahapatra commented Feb 8, 2026

Summary

  • Guarded against ipv4Gateway if nil and throw ContainerizationError(.invalidState, ...) instead of force unwraping
  • Added a unit test ContainerManagerTests.testCreateThrowsWhenGatewayMissing

Testing

  • make test passed locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant