catched error when returning empty matrix data
Merge pull request #221 from teharrison/develop

catched error when returning empty matrix data