From a3630a619a77834a00afc2bf88eb93a9bbb8c8aa Mon Sep 17 00:00:00 2001 From: Anton Lobov Date: Tue, 10 Jul 2018 11:27:14 +0200 Subject: [PATCH] json: showErrorsAndGetLeastErroneous is expected to return null in some cases --- .../jetbrains/jsonSchema/impl/JsonSchemaAnnotatorChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/src/com/jetbrains/jsonSchema/impl/JsonSchemaAnnotatorChecker.java b/json/src/com/jetbrains/jsonSchema/impl/JsonSchemaAnnotatorChecker.java index 46ad18d3c527..448ff7538cda 100644 --- a/json/src/com/jetbrains/jsonSchema/impl/JsonSchemaAnnotatorChecker.java +++ b/json/src/com/jetbrains/jsonSchema/impl/JsonSchemaAnnotatorChecker.java @@ -942,7 +942,7 @@ class JsonSchemaAnnotatorChecker { * In this case we need to show the most "suitable" error messages * - by detecting the most "likely" schema corresponding to the current entity */ - @NotNull + @Nullable private JsonSchemaObject showErrorsAndGetLeastErroneous(@NotNull List candidateErroneousCheckers, @NotNull List candidateErroneousSchemas) { JsonSchemaObject current = null;