Skip to content

Commit 175e5e4

Browse files
author
Vitalii Parfonov
authored
Fix possible NPE if GitHub repo don't have description (eclipse-che#1997)
Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
1 parent 173ad2e commit 175e5e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/plugin-github/che-plugin-github-ide/src/main/java/org/eclipse/che/plugin/github/ide/importer/page/GithubImporterPageViewImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public SafeHtml getValue(final ProjectData item) {
162162
public SafeHtml getValue(final ProjectData item) {
163163
return new SafeHtmlBuilder()
164164
.appendHtmlConstant("<span>")
165-
.appendEscaped(item.getDescription())
165+
.appendEscaped(item.getDescription() == null ? "" : item.getDescription())
166166
.appendHtmlConstant("</span>")
167167
.toSafeHtml();
168168
}

0 commit comments

Comments
 (0)