Fix #866. AccessPathNullnessPropagation#isCallToMethod is not robust and causes java.lang.RuntimeException: expected call to iterator(), instead saw null. As a quick fix, leverage errorprone matchers. No new test case is added because I'm unable to reproduce it easily and NullAwayKeySetIteratorTests already covers the code pattern.
Fix #866.
AccessPathNullnessPropagation#isCallToMethod
is not robust and causes java.lang.RuntimeException: expected call to iterator(), instead saw null. As a quick fix, leverage errorprone matchers. No new test case is added because I'm unable to reproduce it easily andNullAwayKeySetIteratorTests
already covers the code pattern.