Fix format the endpoint name with empty string (#12508)
This commit is contained in:
parent
28f3dfa6b1
commit
9b17ff1efe
|
|
@ -48,6 +48,7 @@
|
|||
* Bump up graphql-java to 21.5.
|
||||
* Add Unknown Node when receive Kubernetes peer address is not aware in current cluster.
|
||||
* Fix CounterWindow concurrent increase cause NPE by PriorityQueue
|
||||
* Fix format the endpoint name with empty string.
|
||||
|
||||
#### UI
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ public class NamingControl implements Service {
|
|||
* @return the string, which length less than or equals {@link #endpointNameMaxLength};
|
||||
*/
|
||||
public String formatEndpointName(String serviceName, String endpointName) {
|
||||
if (StringUtil.isEmpty(serviceName) || endpointName == null) {
|
||||
if (StringUtil.isEmpty(serviceName) || StringUtil.isEmpty(endpointName)) {
|
||||
return endpointName;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue