Source:
<code>protected final boolean checkAndReportInvalidState() { if (isCancelled()) { return true; } if (permissionManager.isClosed()) { ObjectServerError error = new ObjectServerError(ErrorCode.UNKNOWN, new IllegalStateException("PermissionManager has been closed")); notifyCallbackError(error); return true; } boolean managementErrorHappened; boolean permissionErrorHappened; boolean defaultPermissionErrorHappened; ObjectServerError managementError; ObjectServerError permissionError; ObjectServerError defaultPermissionError; synchronized (permissionManager.errorLock) { managementErrorHappened = (permissionManager.managementRealmError != null); permissionErrorHappened = (permissionManager.permissionRealmError != null); defaultPermissionErrorHappened = (permissionManager.defaultPermissionsRealmError != null); managementError = permissionManager.managementRealmError; permissionError = permissionManager.permissionRealmError; defaultPermissionError = permissionManager.defaultPermissionsRealmError; } if (permissionErrorHappened && !managementErrorHappened && !defaultPermissionErrorHappened) { notifyCallbackError(permissionError); return true; } if (managementErrorHappened && !permissionErrorHappened && !defaultPermissionErrorHappened) { notifyCallbackError(managementError); return true; } if (defaultPermissionErrorHappened && !permissionErrorHappened && !managementErrorHappened) { notifyCallbackError(defaultPermissionError); <START> } <END> Map<String, ObjectServerError> errors = new LinkedHashMap<>(); if (managementErrorHappened) { errors.put("Management Realm", managementError); } if (permissionErrorHappened) { errors.put("Permission Realm", permissionError); } if (defaultPermissionErrorHappened) { errors.put("Default Permission Realm", defaultPermissionError); } if (!errors.isEmpty()) { notifyCallbackError(combineRealmErrors(errors)); return true; } return false; }</code><technical_language>missing return true;</technical_language>

Target:
protected final boolean checkAndReportInvalidState() { if (isCancelled()) { return true; } if (permissionManager.closed) { ObjectServerError error = new ObjectServerError(ErrorCode.UNKNOWN, new IllegalStateException("PermissionManager has been closed")); notifyCallbackError(error); return true; } boolean managementErrorHappened; boolean permissionErrorHappened; boolean defaultPermissionErrorHappened; ObjectServerError managementError; ObjectServerError permissionError; ObjectServerError defaultPermissionError; synchronized (permissionManager.errorLock) { managementErrorHappened = (permissionManager.managementRealmError != null); permissionErrorHappened = (permissionManager.permissionRealmError != null); defaultPermissionErrorHappened = (permissionManager.defaultPermissionRealmError != null); managementError = permissionManager.managementRealmError; permissionError = permissionManager.permissionRealmError; defaultPermissionError = permissionManager.defaultPermissionRealmError; } if (!permissionErrorHappened && !managementErrorHappened && !defaultPermissionErrorHappened) { return false; } Map<String, ObjectServerError> errors = new LinkedHashMap<>(); if (managementErrorHappened) { errors.put("Management Realm", managementError); } if (permissionErrorHappened) { errors.put("Permission Realm", permissionError); } if (defaultPermissionErrorHappened) { errors.put("Default Permission Realm", defaultPermissionError); } notifyCallbackError(combineRealmErrors(errors)); return true; }