Browse Source

don't bother to check for circular references if you're just going to die anyway due to null Project

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@443420 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
38a775c075
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/types/DataType.java

+ 1
- 1
src/main/org/apache/tools/ant/types/DataType.java View File

@@ -253,10 +253,10 @@ public abstract class DataType extends ProjectComponent {
*/
protected Object getCheckedRef(final Class requiredClass,
final String dataTypeName, final Project project) {
dieOnCircularReference(project);
if (project == null) {
throw new BuildException("No Project specified");
}
dieOnCircularReference(project);
Object o = ref.getReferencedObject(project);
if (!(requiredClass.isAssignableFrom(o.getClass()))) {
log("Class " + o.getClass() + " is not a subclass of " + requiredClass,


Loading…
Cancel
Save