opendj-server-legacy/src/main/java/org/opends/server/tasks/AddSchemaFileTask.java
@@ -100,8 +100,7 @@ // Get the name(s) of the schema files to add and make sure they exist in // the schema directory. String schemaInstanceDirectory = SchemaConfigManager.getSchemaDirectoryPath(); String schemaInstanceDirectory = DirectoryServer.getEnvironmentConfig().getSchemaDirectory().getPath(); filesToAdd = new TreeSet<>(); for (Attribute a : attrList) {