Skip to content
This repository was archived by the owner on Jan 11, 2019. It is now read-only.

Commit 4edca13

Browse files
committed
2 parents e167ec1 + f171e53 commit 4edca13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/smartbear/swagger/Swagger2Importer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class Swagger2Importer implements SwaggerImporter {
332332
def restService = project.addNewInterface(name, RestServiceFactory.REST_TYPE)
333333
restService.description = swagger.info?.description
334334

335-
if (swagger.host != null) {
335+
if (!StringUtils.isNullOrEmpty(swagger.host)) {
336336
if (swagger.schemes != null) {
337337
swagger.schemes.each { it ->
338338
def scheme = it.toValue().toLowerCase()

0 commit comments

Comments
 (0)