Commit 62c129fb authored by Sergey Luzyanin's avatar Sergey Luzyanin

check shape parent

parent ec39bc43
......@@ -1055,7 +1055,7 @@ CShape.prototype.getHierarchy = function () {
{
this.compiledHierarchy = [];
var hierarchy = this.compiledHierarchy;
if (this.isPlaceholder()) {
if (this.parent && this.isPlaceholder()) {
var ph_type = this.getPlaceholderType();
var ph_index = this.getPlaceholderIndex();
switch (this.parent.kind) {
......
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