We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b48b124 + 7396fa0 commit cb9f828Copy full SHA for cb9f828
graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/CodeGen.kt
@@ -139,7 +139,7 @@ class CodeGen(private val config: CodeGenConfig) {
139
parser.parseDocument(parserEnv)
140
} catch (exception: InvalidSyntaxException) {
141
// check if the schema is empty
142
- if (exception.sourcePreview.isBlank()) {
+ if (exception.sourcePreview == null || exception.sourcePreview.isBlank()) {
143
logger.warn("Schema is empty")
144
// return an empty document
145
return Document.newDocument().build()
0 commit comments