Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KNOX-3064: Set the private gatewayservices field to fix nullpointer e… #935

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

hanicz
Copy link
Contributor

@hanicz hanicz commented Sep 10, 2024

…xceptions

What changes were proposed in this pull request?

The below tests are failing with NullPointerException during the build

BadUrlTest.setUpBeforeClass:122->startGatewayServer:180->setupGatewayConfig:321 » NullPointer

WebsocketBackendUrlTest.setUpBeforeClass:59->WebsocketEchoTestBase.setupGatewayConfig:351 » NullPointer

WebsocketEchoHTTPServiceRoleTest.setUpBeforeClass:64->WebsocketEchoTestBase.startServers:116->WebsocketEchoTestBase.startServers:121->WebsocketEchoTestBase.startGatewayServer:206->WebsocketEchoTestBase.setupGatewayConfig:351 » NullPointer

WebsocketEchoTest.setUpBeforeClass:63->WebsocketEchoTestBase.startServers:116->WebsocketEchoTestBase.startServers:121->WebsocketEchoTestBase.startGatewayServer:206->WebsocketEchoTestBase.setupGatewayConfig:351 » NullPointer

WebsocketMultipleConnectionTest.startServers:131->startGatewayServer:239->setupGatewayConfig:384 » NullPointer

WebsocketServerInitiatedMessageTest.setUpBeforeClass:73->WebsocketEchoTestBase.startServers:116->WebsocketEchoTestBase.startServers:121->WebsocketEchoTestBase.startGatewayServer:206->WebsocketEchoTestBase.setupGatewayConfig:351 » NullPointer

WebsocketServerInitiatedPingTest.setUpBeforeClass:75->WebsocketEchoTestBase.startServers:116->WebsocketEchoTestBase.startServers:121->WebsocketEchoTestBase.startGatewayServer:206->WebsocketEchoTestBase.setupGatewayConfig:351 » NullPointer

The changes address these NullPointerExceptions thrown.

How was this patch tested?

Ran tests locally
Github build also successfully completed with these changes in my repository

Copy link
Contributor

@pzampino pzampino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did this break without these tests failing?

Copy link
Contributor

@moresandeep moresandeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks OK but did it break for you locally?

@hanicz
Copy link
Contributor Author

hanicz commented Sep 10, 2024

No, locally it is working fine. The builds are failing on GitHub.

@moresandeep
Copy link
Contributor

No, locally it is working fine. The builds are failing on GitHub.

Ship it !

@pzampino pzampino merged commit b3b0e4a into apache:master Sep 10, 2024
2 checks passed
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.

3 participants