Update server/src/main/java/com/orientechnologies/orient/server/task/OAbstractRecordDistributedTask.java

NPE protection