sinttest: only append subdescriptions if there are any

This commit is contained in:
Florian Schmaus 2020-04-12 22:17:12 +02:00
parent 268425854a
commit 2b41a67028
1 changed files with 4 additions and 2 deletions

View File

@ -746,8 +746,10 @@ public class SmackIntegrationTestFramework {
.append(method.getName())
.append(" (")
.append(testType.name());
sb.append(", ");
StringUtils.appendTo(Arrays.asList(subdescriptons), sb);
if (subdescriptons != null) {
sb.append(", ");
StringUtils.appendTo(Arrays.asList(subdescriptons), sb);
}
sb.append(')');
stringCache = sb.toString();