Getting Instrumentation run failed due to 'java.lang.NullPointerException'
问题 I am trying to write Unit test cases for Activities in my app by extending the test class with ActivityUnitTestCase . I could successfully run the test cases earlier but now I'm always getting the exception while running them. Even though I'm pretty familiar with handling NullPointerExceptions , I couldn't figure out the problem that's causing this. I couldn't find any similar questions so I'm posting this one. Stack trace shows me there is a null object reference at this line in my code