Skip to content

Commit

Permalink
Merge pull request #284 from tollus/patch-1
Browse files Browse the repository at this point in the history
Add null check
  • Loading branch information
Nividica committed Apr 14, 2016
2 parents 6c29bb0 + 223a531 commit c5f8ee7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -611,7 +611,7 @@ private ItemStack[] getViewCells()
viewSlot = this.getSlotOrNull( viewSlotIndex );

// Ensure the slot is not empty
if( !viewSlot.getHasStack() )
if( viewSlot == null || !viewSlot.getHasStack() )
{
continue;
}
Expand Down

0 comments on commit c5f8ee7

Please sign in to comment.