Browse Source

PR 56849 - don't even try to create a classpath without a project component

master
Stefan Bodewig 10 years ago
parent
commit
13b0df1f06
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java

+ 3
- 0
src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java View File

@@ -178,6 +178,9 @@ public class ScriptRunnerHelper {

private ClasspathUtils.Delegate getClassPathDelegate() {
if (cpDelegate == null) {
if (projectComponent == null) {
throw new IllegalStateException("Can't access classpath without a project component");
}
cpDelegate = ClasspathUtils.getDelegate(projectComponent);
}
return cpDelegate;


Loading…
Cancel
Save