keeganwitt / gmock

Automatically exported from code.google.com/p/gmock
6 stars 2 forks source link

Using null arguments cause NullPointerException #134

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using null arguments and expectations not being matched will cause a NPE.

For example:

@Test
void testNullParameter() {
    def m = mock()
    m.fun(null)
    play {}
}

Original issue reported on code.google.com by JohnnyJianHY on 19 Feb 2013 at 11:45

GoogleCodeExporter commented 8 years ago

Original comment by JohnnyJianHY on 23 Feb 2013 at 11:26