{"action":"created","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/2096","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/2096/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/2096/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/2096/events","html_url":"https://github.com/robolectric/robolectric/issues/2096","id":111283217,"number":2096,"title":"NullPointerException in RobolectricGradleTestRunner during initialization","user":{"login":"cperry-gpsw","id":12532722,"avatar_url":"https://avatars.githubusercontent.com/u/12532722?v=3","gravatar_id":"","url":"https://api.github.com/users/cperry-gpsw","html_url":"https://github.com/cperry-gpsw","followers_url":"https://api.github.com/users/cperry-gpsw/followers","following_url":"https://api.github.com/users/cperry-gpsw/following{/other_user}","gists_url":"https://api.github.com/users/cperry-gpsw/gists{/gist_id}","starred_url":"https://api.github.com/users/cperry-gpsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cperry-gpsw/subscriptions","organizations_url":"https://api.github.com/users/cperry-gpsw/orgs","repos_url":"https://api.github.com/users/cperry-gpsw/repos","events_url":"https://api.github.com/users/cperry-gpsw/events{/privacy}","received_events_url":"https://api.github.com/users/cperry-gpsw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robolectric/robolectric/labels/3.0","name":"3.0","color":"c7def8"},{"url":"https://api.github.com/repos/robolectric/robolectric/labels/defect","name":"defect","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/robolectric/robolectric/milestones/7","html_url":"https://github.com/robolectric/robolectric/milestones/3.1","labels_url":"https://api.github.com/repos/robolectric/robolectric/milestones/7/labels","id":1083024,"number":7,"title":"3.1","description":"","creator":{"login":"erd","id":184194,"avatar_url":"https://avatars.githubusercontent.com/u/184194?v=3","gravatar_id":"","url":"https://api.github.com/users/erd","html_url":"https://github.com/erd","followers_url":"https://api.github.com/users/erd/followers","following_url":"https://api.github.com/users/erd/following{/other_user}","gists_url":"https://api.github.com/users/erd/gists{/gist_id}","starred_url":"https://api.github.com/users/erd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erd/subscriptions","organizations_url":"https://api.github.com/users/erd/orgs","repos_url":"https://api.github.com/users/erd/repos","events_url":"https://api.github.com/users/erd/events{/privacy}","received_events_url":"https://api.github.com/users/erd/received_events","type":"User","site_admin":false},"open_issues":43,"closed_issues":18,"state":"open","created_at":"2015-04-25T00:15:41Z","updated_at":"2015-10-27T21:15:22Z","due_on":null,"closed_at":null},"comments":22,"created_at":"2015-10-13T22:17:15Z","updated_at":"2015-11-24T22:50:35Z","closed_at":null,"body":"This simple test fails to run\r\n\r\n```java\r\n@RunWith(RobolectricGradleTestRunner.class)\r\n@Config(constants = BuildConfig.class, sdk = 23)\r\npublic class ExampleRobolectricTest{\r\n\r\n  @Test\r\n  public void shouldInitialize() {\r\n    assertThat(RuntimeEnvironment.application).isNotNull();\r\n  }\r\n}\r\n```\r\n\r\nI'm on 3.1-SNAPSHOT\r\n\r\nStack trace:\r\n\r\n```\r\njava.lang.NullPointerException\r\n\tat org.robolectric.RobolectricGradleTestRunner.<init>(RobolectricGradleTestRunner.java:36)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:422)\r\n\tat org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)\r\n\tat org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:41)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)\r\n```"},"comment":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/comments/159431052","html_url":"https://github.com/robolectric/robolectric/issues/2096#issuecomment-159431052","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/2096","id":159431052,"user":{"login":"jaredsburrows","id":1739848,"avatar_url":"https://avatars.githubusercontent.com/u/1739848?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredsburrows","html_url":"https://github.com/jaredsburrows","followers_url":"https://api.github.com/users/jaredsburrows/followers","following_url":"https://api.github.com/users/jaredsburrows/following{/other_user}","gists_url":"https://api.github.com/users/jaredsburrows/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredsburrows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredsburrows/subscriptions","organizations_url":"https://api.github.com/users/jaredsburrows/orgs","repos_url":"https://api.github.com/users/jaredsburrows/repos","events_url":"https://api.github.com/users/jaredsburrows/events{/privacy}","received_events_url":"https://api.github.com/users/jaredsburrows/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T22:50:35Z","updated_at":"2015-11-24T22:50:35Z","body":"@rogerhu  +1"}}