diff --git a/java_console/inifile/build.gradle b/java_console/inifile/build.gradle index 43169931cd..3bfae7a816 100644 --- a/java_console/inifile/build.gradle +++ b/java_console/inifile/build.gradle @@ -1,5 +1,6 @@ plugins { id 'java-library' + id 'java-test-fixtures' } dependencies { diff --git a/java_console/inifile/src/main/java/com/rusefi/tune/xml/Msq.java b/java_console/inifile/src/main/java/com/rusefi/tune/xml/Msq.java index 3a052914fd..e4e8fd869b 100644 --- a/java_console/inifile/src/main/java/com/rusefi/tune/xml/Msq.java +++ b/java_console/inifile/src/main/java/com/rusefi/tune/xml/Msq.java @@ -50,6 +50,7 @@ public class Msq { } public ConfigurationImage asImage(IniFileModel instance) { + Objects.requireNonNull(instance, "ini model"); ConfigurationImage ci = new ConfigurationImage(instance.getMetaInfo().getTotalSize()); Page page = findPage(); diff --git a/java_tools/tune-tools/build.gradle b/java_tools/tune-tools/build.gradle index 8453f03e76..8d4d337f11 100644 --- a/java_tools/tune-tools/build.gradle +++ b/java_tools/tune-tools/build.gradle @@ -1,9 +1,11 @@ plugins { id 'java-library' id 'com.github.johnrengelman.shadow' version "${shadowVersion}" + id 'java-test-fixtures' } dependencies { api project(':config_definition') api project(':ecu_io') + testFixturesApi project(':ecu_io') }