fixed string comparation

This commit is contained in:
anthony 2011-05-06 11:04:03 -07:00
parent d43e6fef9c
commit 37bae606d0
1 changed files with 1 additions and 1 deletions

View File

@ -4777,7 +4777,7 @@ public class ManagementServerImpl implements ManagementServer {
Long zoneId = cmd.getZoneId();
if (zoneId == null) {
String hypers = _configDao.getValue(Config.HypervisorList.key());
if (hypers == "" || hypers == null) {
if ( hypers == null || hypers.isEmpty() ) {
return null;
}
return hypers.split(",");