Skip to content

Commit

Permalink
Merge pull request #687 from semanticfire/patch-1
Browse files Browse the repository at this point in the history
Fix hard crash on missng skosxl:literalForm
  • Loading branch information
Henri Ylikotila authored Jan 15, 2018
2 parents 8ab9cdd + 1ef321e commit 4ef44ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Concept.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function getXlLabel()
$labels = $this->resource->allResources('skosxl:prefLabel');
foreach($labels as $labres) {
$label = $labres->getLiteral('skosxl:literalForm');
if ($label->getLang() == $this->clang) {
if ($label !== null && $label->getLang() == $this->clang) {
return new LabelSkosXL($this->model, $labres);
}
}
Expand Down

0 comments on commit 4ef44ec

Please sign in to comment.