Commit 5df59c7a authored by Matthias Betz's avatar Matthias Betz
Browse files

fix error while removing results that have no error (result is ok)

parent 55f76a2c
Pipeline #12289 passed with stage
in 1 minute and 59 seconds
...@@ -224,7 +224,12 @@ public abstract class Checkable implements Serializable { ...@@ -224,7 +224,12 @@ public abstract class Checkable implements Serializable {
* Clears the checkResults of this checkable unless the error occured during parsing. * Clears the checkResults of this checkable unless the error occured during parsing.
*/ */
public void clearCheckResults() { public void clearCheckResults() {
checkResults.entrySet().removeIf(e -> !e.getValue().getError().isParsingError()); checkResults.entrySet().removeIf(e -> {
if (e.getValue().getError() == null) {
return true;
}
return !e.getValue().getError().isParsingError();
});
setValidated(!checkResults.isEmpty()); setValidated(!checkResults.isEmpty());
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment