The following code produces a NullPointerException:
JsonSchemaFactory factory = JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V7);
factory.getSchema("{ \"$schema\": true }");
The $schema property should be a string but there is no check that it is, in fact, a string.
Note that I have a fix for this I will put up in a PR shortly.