opendj-server-legacy/src/main/java/org/opends/server/backends/task/TaskScheduler.java
@@ -1808,7 +1808,7 @@ throws DirectoryException { // Get the name of the class that implements the task logic. AttributeType attrType = DirectoryServer.getSchema().getAttributeType(ATTR_TASK_CLASS); AttributeType attrType = DirectoryServer.getInstance().getServerContext().getSchema().getAttributeType(ATTR_TASK_CLASS); List<Attribute> attrList = entry.getAllAttributes(attrType); if (attrList.isEmpty()) {