Fix generation of invalid classpath groups when idea compiler output dir is not set.

This commit is contained in:
modmuss50
2022-05-18 23:47:17 +01:00
parent 5a8e048950
commit 997f9a8acd

View File

@@ -167,7 +167,13 @@ public final class SourceSetHelper {
final XPath xpath = XPathFactory.newInstance().newXPath();
try (FileInputStream fis = new FileInputStream(file)) {
return xpath.evaluate(expression, new InputSource(fis));
String result = xpath.evaluate(expression, new InputSource(fis));
if (result.isEmpty()) {
return null;
}
return result;
} catch (XPathExpressionException e) {
return null;
} catch (IOException e) {