Skip to content

Conversation

@joeygrover
Copy link
Member

Fixes #365

Also fixed a few other obvious issues along the same line in the SdlRouterService.

@joeygrover joeygrover added bug A defect in the library high priority labels Nov 18, 2016

@Override
public void handleMessage(Message msg) {
if(this.provider == null || this.provider.get() == null){

Choose a reason for hiding this comment

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

Could make this.provider variable final, initialize it once in constructor and not to check for (this.provider == null) each time after. Only this.provider.get() can actually be null.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes that's a better idea

@valeriia-shchukina
Copy link

seems good) waiting for the fix to be merged

@valeriia-shchukina
Copy link

Can we ship it, please?? It's really urgent, ton of crashes in production =(

@mrapitis mrapitis added REVIEW - accepted The reviewer has approved the PR and removed Review - Ready labels Nov 21, 2016
@mrapitis
Copy link
Contributor

LGTM

@joeygrover joeygrover merged commit 3901d52 into master Nov 22, 2016
@joeygrover joeygrover deleted the bugfix/issue_365 branch November 22, 2016 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A defect in the library REVIEW - accepted The reviewer has approved the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPE in SdlRouterStatusProvider

4 participants