mirror of
				https://github.com/MinimalBible/MinimalBible-Legacy
				synced 2025-11-04 02:10:30 -05:00 
			
		
		
		
	Try once more to fix the NPE on tests.
This commit is contained in:
		@ -58,11 +58,13 @@ public class MinimalBible extends Application {
 | 
			
		||||
     * @param o The object to be injected
 | 
			
		||||
     */
 | 
			
		||||
    public void inject(Object o) {
 | 
			
		||||
        getObjGraph().inject(o);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public ObjectGraph getObjGraph() {
 | 
			
		||||
        if (graph == null) {
 | 
			
		||||
            graph = ObjectGraph.create(MinimalBibleModules.class);
 | 
			
		||||
        }
 | 
			
		||||
        graph.inject(o);
 | 
			
		||||
        return graph;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public ObjectGraph getObjGraph() { return graph; }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user