If a query contains extra characters at the end, e.g. {something}}, document parsing will throw a ParseCancellationException that doesn't have RecognitionException as the cause. Yet, graphql.GraphQL#203 always expects RecognitionException, which causes a NullPointerException obscuring the real error.
If a query contains extra characters at the end, e.g.
{something}}, document parsing will throw aParseCancellationExceptionthat doesn't haveRecognitionExceptionas the cause. Yet, graphql.GraphQL#203 always expectsRecognitionException, which causes aNullPointerExceptionobscuring the real error.