Skip to content

Commit bfaacfa

Browse files
committed
fix npe
1 parent 5b5d078 commit bfaacfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/api/ApiDBUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ public static BackupScheduleResponse newBackupScheduleResponse(BackupSchedule sc
23052305

23062306
public static BackupOfferingResponse newBackupOfferingResponse(BackupOffering offering) {
23072307
BackupRepository repository = s_backupRepositoryDao.findByUuid(offering.getExternalId());
2308-
Boolean crossZoneInstanceCreationEnabled = repository != null ? repository.crossZoneInstanceCreationEnabled() : false;
2308+
Boolean crossZoneInstanceCreationEnabled = repository != null ? Boolean.TRUE.equals(repository.crossZoneInstanceCreationEnabled()) : false;
23092309
return s_backupOfferingDao.newBackupOfferingResponse(offering, crossZoneInstanceCreationEnabled);
23102310
}
23112311

0 commit comments

Comments
 (0)