surviving IDEA run without resources

This commit is contained in:
rusefi 2021-10-27 23:39:37 -04:00
parent 93e17986a9
commit 6b23a2f22b
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ public class LiveDataParserPanel {
public static String getContent(Class<?> clazz, String fileName) throws IOException, URISyntaxException {
InputStream cpp = clazz.getResourceAsStream("/c_sources/" + fileName);
if (cpp == null)
return fileName + " getResourceAsStream not found";
String line;
StringBuilder result = new StringBuilder();