surviving IDEA run without resources
This commit is contained in:
parent
93e17986a9
commit
6b23a2f22b
|
@ -107,6 +107,8 @@ public class LiveDataParserPanel {
|
||||||
|
|
||||||
public static String getContent(Class<?> clazz, String fileName) throws IOException, URISyntaxException {
|
public static String getContent(Class<?> clazz, String fileName) throws IOException, URISyntaxException {
|
||||||
InputStream cpp = clazz.getResourceAsStream("/c_sources/" + fileName);
|
InputStream cpp = clazz.getResourceAsStream("/c_sources/" + fileName);
|
||||||
|
if (cpp == null)
|
||||||
|
return fileName + " getResourceAsStream not found";
|
||||||
String line;
|
String line;
|
||||||
|
|
||||||
StringBuilder result = new StringBuilder();
|
StringBuilder result = new StringBuilder();
|
||||||
|
|
Loading…
Reference in New Issue