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

JBIDE-21760 NPE is thrown on addition of a first pod-service mapping in Deploy docker image wizard #979

Closed
wants to merge 1 commit into from

Conversation

scabanovich
Copy link
Contributor

IServicePort.getTargetPort() returns null.
The fix reverts podPort.equals(newPort) to newPort.equals(podPort) because newPort is checked above for null.
@jcantrill, could you please check if it is allowed for IServicePort.getTargetPort() to return null.

@jcantrill
Copy link
Contributor

@scabanovich it does not return null. I have a PR #984 which will change this, but I think this should be added regardless.

@scabanovich
Copy link
Contributor Author

Ok, then IServicePort.getTargetPort() by design never returns null. But exception in the issue was caused because it happened at some case. If it was another bug and it is fixed, it is good. Still, maybe UI should be protected from this NPE as suggested, because future changes may again cause it. (If something may go wrong it will go wrong - Murphy's law )

@fbricon
Copy link
Member

fbricon commented Feb 26, 2016

Applied in master/4.3.x Thanks @scabanovich !

@fbricon fbricon closed this Feb 26, 2016
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.

None yet

3 participants