Skip to content

Commit

Permalink
OutlineTree to check for null, refs 499
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjames committed Jul 21, 2019
1 parent 6b5cb93 commit 5da2a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Outline/OutlineTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function categorizeItem( $vals, $item ) {
* @param $property
*/
public function addProperty( $property ) {
if ( count( $this->items ) > 0 ) {
if ( $this->items !== null && count( $this->items ) > 0 ) {
foreach ( $this->items as $item ) {
$cur_vals = $item->getFieldValues( $property );
$this->categorizeItem( $cur_vals, $item );
Expand Down

0 comments on commit 5da2a7b

Please sign in to comment.