From 1e4ef777f8b598aa06ad4c907b0c8fbe86a53a6f Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Tue, 5 May 2015 15:41:46 +0300 Subject: [PATCH] do not show null host name --- .../openapi/src/com/intellij/debugger/DebuggerBundle.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/debugger/openapi/src/com/intellij/debugger/DebuggerBundle.java b/java/debugger/openapi/src/com/intellij/debugger/DebuggerBundle.java index 17f779919970..75fdf9370a74 100644 --- a/java/debugger/openapi/src/com/intellij/debugger/DebuggerBundle.java +++ b/java/debugger/openapi/src/com/intellij/debugger/DebuggerBundle.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.intellij.debugger; import com.intellij.CommonBundle; import com.intellij.execution.configurations.RemoteConnection; +import com.intellij.openapi.util.text.StringUtil; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.PropertyKey; @@ -38,7 +39,8 @@ public class DebuggerBundle { } public static String getAddressDisplayName(final RemoteConnection connection) { - return connection.isUseSockets() ? connection.getHostName() + ":" + connection.getAddress() : connection.getAddress(); + return connection.isUseSockets() ? StringUtil.notNullize(connection.getHostName()) + ":" + connection.getAddress() + : connection.getAddress(); } public static String getTransportName(final RemoteConnection connection) {