Commit 5ae0a1f3 authored by Luna Riegel's avatar Luna Riegel
Browse files

Fix: Handle cache passthrough within streamchecker

parent e53df320
Pipeline #12324 passed with stage
in 2 minutes and 28 seconds
......@@ -59,6 +59,7 @@ import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamSource;
import de.hft.stuttgart.citydoctor2.database.UnconnectedCache;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
......@@ -636,7 +637,10 @@ public class Checker {
ArrayList<Check> checkList = new ArrayList<>();
for (CheckId id : enabledCheck) {
Check c = checkConfig.getCheckForId(id);
c.init(parameterMap, parserConfig, model.getCache());
//TODO: Change this to correct handling with streamchecker
CityObjectCache cache = model !=null ? model.getCache() : new UnconnectedCache();
//Temp ternary
c.init(parameterMap, parserConfig, cache);
checkList.add(c);
}
return checkList;
......
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