-
Notifications
You must be signed in to change notification settings - Fork 55
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-23821] fix NPE when existing server has no type #1401
Conversation
@robstryker +1 please? |
@Test | ||
public void shouldFindServerGivenListOfServersContainsServerWithNullType() throws CoreException { | ||
// given | ||
IServer os3Server = mockOS3Server("os3", "someService"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a test, there's no added value in defining a constant to make sure we're always using the very same string.
&& testServer(server); | ||
} | ||
|
||
abstract protected boolean testServer(IServer server); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, a leftover of a try that I eventually stopped.
@Test | ||
public void shouldFindServerGivenListOfServersContainsServerWithNullType() throws CoreException { | ||
// given | ||
IServer os3Server = mockOS3Server("os3", "someService"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a test, there's no added value in defining a constant to make sure we're always using the very same string.
@robstryker +1 please? |
1 similar comment
@robstryker +1 please? |
+1 |
Pull Request Checklist
General
Code
Testing
Function