import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeColumn;
+import java.util.Map;
+
import org.oic.simulator.AttributeValue.ValueType;
import org.oic.simulator.SimulatorResourceAttribute;
@Override
public Object[] getChildren(Object attribute) {
if (attribute instanceof AttributeElement) {
- return ((AttributeElement) attribute).getChildren().values()
- .toArray();
+ Map<String, AttributeElement> children = ((AttributeElement) attribute)
+ .getChildren();
+ if (null != children) {
+ return children.values().toArray();
+ }
}
return new Object[0];