DESCRIPTION

Bug 475326 - NullPointerException in DockerExplorerLabelProvider.getStyledText

From the version that the user was running, the line
of code the initiated the NPE was:
  styledString.setStyle(connection.getName().length(),
    message.length() - connection.getName().length(),
    StyledString.QUALIFIER_STYLER);

This may be caused by a connection with no name, so the
workaround here is to check that the name is not null or
empty and default to a "<unnamed>" label.

Change-Id: Ic8cab940f93a5c2f2a75d11319055bd3c6174313
Signed-off-by: Zechariah Krause xxx@xxx.xxx


COMMENTS

author: Zechariah Krause
date: 2015-08-19 15:36:43.000000000

Uploaded patch set 2: Commit message was updated.

-------------------------------------
author: Brenden Conley
date: 2015-08-19 15:36:49.000000000

Patch Set 2:

Build Started https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/9821/

-------------------------------------
author: Brenden Conley
date: 2015-08-19 15:51:21.000000000

Patch Set 2: Verified+1

Build Successful 

https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/9821/ : SUCCESS

-------------------------------------
author: Gerrit Code Review
date: 2015-08-21 16:35:55.000000000

Change has been successfully cherry-picked as 90838feac46f06b1acf76cfd3c53adecd3526a6d by Nathanael Holden

-------------------------------------
