Commit a45758ff authored by Per von Zweigbergk's avatar Per von Zweigbergk

(base) Properly check for null in getNodeByUUID

parent 58bfcf6e
......@@ -45,7 +45,8 @@ abstract class ApiMutableTableModelControllerBase extends ApiControllerBase
return $this->getModel()->getNodeByReference($ref);
}
private function getNodeByUUID($uuid) {
return $this->getNodes()->$uuid;
$nodes = $this->getNodes();
return !empty($nodes) ? $nodes->$uuid : null;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment