{"action":"closed","issue":{"url":"https://api.github.com/repos/johncarl81/transfuse/issues/170","labels_url":"https://api.github.com/repos/johncarl81/transfuse/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/johncarl81/transfuse/issues/170/comments","events_url":"https://api.github.com/repos/johncarl81/transfuse/issues/170/events","html_url":"https://github.com/johncarl81/transfuse/issues/170","id":75112996,"number":170,"title":"Using a factory defined in a library","user":{"login":"dbachelder","id":325706,"avatar_url":"https://avatars.githubusercontent.com/u/325706?v=3","gravatar_id":"","url":"https://api.github.com/users/dbachelder","html_url":"https://github.com/dbachelder","followers_url":"https://api.github.com/users/dbachelder/followers","following_url":"https://api.github.com/users/dbachelder/following{/other_user}","gists_url":"https://api.github.com/users/dbachelder/gists{/gist_id}","starred_url":"https://api.github.com/users/dbachelder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbachelder/subscriptions","organizations_url":"https://api.github.com/users/dbachelder/orgs","repos_url":"https://api.github.com/users/dbachelder/repos","events_url":"https://api.github.com/users/dbachelder/events{/privacy}","received_events_url":"https://api.github.com/users/dbachelder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-11T06:55:20Z","updated_at":"2015-05-16T19:34:29Z","closed_at":"2015-05-16T19:34:29Z","body":"I have a library \"utils\" that has many of the fundamentals we use in a couple apps, base fragment, activity and module, and I have recently added a @Factory class that I was going to get at via `Factories.get()` in those base classes (not within the TF dependency graph).\r\n\r\nThis fails with an exception:\r\n```\r\n    java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object org.androidtransfuse.Factories$FactoryBuilder.get()' on a null object reference\r\n            at org.androidtransfuse.Factories.get(Factories.java:66)\r\n```\r\n\r\nSo first, what am I not doing correctly? I am running apt with the transfuse processor on both the library and the app. If I move the Factory interface into the app project and go after it in a baseclass in the app project, everything is fine. \r\n\r\nSecond, the factory should throw an exception like new IllegalArgumentException(\"unable to find factory of type: \" + type + \". Please do blah blah blah and read this link: http://blah.com for possible help\"\r\n\r\n"}}