Skip to content

Running a mutation query against a schema without defined mutations throws NullPointerException. #345

@apottere

Description

@apottere

With 2.3.0:

java.lang.NullPointerException
	at graphql.execution.ExecutionStrategy.getFieldDef(ExecutionStrategy.java:150)
	at graphql.execution.ExecutionStrategy.resolveField(ExecutionStrategy.java:25)
	at graphql.execution.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:18)
	at graphql.execution.Execution.executeOperation(Execution.java:56)
	at graphql.execution.Execution.execute(Execution.java:31)
	at graphql.GraphQL.execute(GraphQL.java:84)

It looks like parentType passed to the execution context is null, causing the error. I'm not quite sure what should be returned, but some GraphQL error should be returned instead (field missing?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions