mirror of https://github.com/apache/cloudstack.git
findbugs: String.split() will not return nulls by contract
This commit is contained in:
parent
97e4fbc294
commit
7b10591758
|
|
@ -867,7 +867,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
if (cpuFeatures != null) {
|
||||
_cpuFeatures = new ArrayList<String>();
|
||||
for (String feature: cpuFeatures.split(" ")) {
|
||||
if (feature != null || !feature.isEmpty()) {
|
||||
if (!feature.isEmpty()) {
|
||||
_cpuFeatures.add(feature);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue