Skip to content

Commit

Permalink
Only try to get the type of a property if its domain is set
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthaler committed Nov 2, 2013
1 parent 2dc5f97 commit 6d01b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/hydra.js
Expand Up @@ -18,7 +18,7 @@
return null;
}

if (('rdfs:Class' !== type['@type']) && ('hydra:Class' !== type['@type'])) {
if (('rdfs:Class' !== type['@type']) && ('hydra:Class' !== type['@type']) && type.domain) {
type = this.getElementDefinition(type.domain);
}

Expand Down

0 comments on commit 6d01b57

Please sign in to comment.