From 2e8974b7454f078db9f95ed0e9b1ba2b020cc8c2 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Wed, 4 Jun 2014 22:18:08 -0400 Subject: [PATCH] See if I can't figure out why I'm getting a NPE on the setup method... --- .../org/bspeice/minimalbible/test/DownloadActivityTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java b/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java index 1052da8..76c4e05 100644 --- a/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java +++ b/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java @@ -44,7 +44,8 @@ public class DownloadActivityTest extends InstrumentationTestCase { public void setUp() { MinimalBible application = MinimalBible.getApplication(); ObjectGraph graph = application.getObjGraph(); - graph.plus(DownloadActivityTestModule.class).inject(this); + ObjectGraph plusGraph = graph.plus(DownloadActivityTestModule.class); + plusGraph.inject(this); } public void testBasicAssertion() {