mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4888
API:UCS:NPE Refresh blades on a decommissioned chassis results in NPE
This commit is contained in:
parent
2e75e8ced0
commit
342931a538
|
|
@ -93,8 +93,11 @@ public class XmlObject {
|
|||
if (e instanceof List) {
|
||||
return (List<T>)e;
|
||||
}
|
||||
List lst = new ArrayList(1);
|
||||
lst.add(e);
|
||||
|
||||
List lst = new ArrayList();
|
||||
if (e != null) {
|
||||
lst.add(e);
|
||||
}
|
||||
return lst;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue