Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php |
— | — | @@ -644,7 +644,11 @@ |
645 | 645 | 'SMW::getInProperties', $this->getSQLOptions( $suboptions, 'smw_sortkey' ) ); |
646 | 646 | |
647 | 647 | foreach ( $res as $row ) { |
648 | | - $result[] = new SMWDIProperty( $row->smw_title ); |
| 648 | + try { |
| 649 | + $result[] = new SMWDIProperty( $row->smw_title ); |
| 650 | + } catch (SMWDataItemException $e) { |
| 651 | + // has been observed to happen (empty property title); cause unclear; ignore this data |
| 652 | + } |
649 | 653 | } |
650 | 654 | } else { |
651 | 655 | $from = $db->tableName( $proptable->name ) . " AS t1"; |