Try once more to fix the NPE on tests.
parent
78997f704f
commit
a7e185690e
|
@ -58,11 +58,13 @@ public class MinimalBible extends Application {
|
||||||
* @param o The object to be injected
|
* @param o The object to be injected
|
||||||
*/
|
*/
|
||||||
public void inject(Object o) {
|
public void inject(Object o) {
|
||||||
|
getObjGraph().inject(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ObjectGraph getObjGraph() {
|
||||||
if (graph == null) {
|
if (graph == null) {
|
||||||
graph = ObjectGraph.create(MinimalBibleModules.class);
|
graph = ObjectGraph.create(MinimalBibleModules.class);
|
||||||
}
|
}
|
||||||
graph.inject(o);
|
return graph;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ObjectGraph getObjGraph() { return graph; }
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue