Added exception to checkRep() if either m1 or m2 is null
Merge pull request #24 from wqian94/master

Fixed issue #9. Good!