{"action":"created","issue":{"url":"https://api.github.com/repos/bluelinelabs/LoganSquare/issues/99","labels_url":"https://api.github.com/repos/bluelinelabs/LoganSquare/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/bluelinelabs/LoganSquare/issues/99/comments","events_url":"https://api.github.com/repos/bluelinelabs/LoganSquare/issues/99/events","html_url":"https://github.com/bluelinelabs/LoganSquare/issues/99","id":115834653,"number":99,"title":"Handling of generic classes throws NPE","user":{"login":"aurae","id":3897705,"avatar_url":"https://avatars.githubusercontent.com/u/3897705?v=3","gravatar_id":"","url":"https://api.github.com/users/aurae","html_url":"https://github.com/aurae","followers_url":"https://api.github.com/users/aurae/followers","following_url":"https://api.github.com/users/aurae/following{/other_user}","gists_url":"https://api.github.com/users/aurae/gists{/gist_id}","starred_url":"https://api.github.com/users/aurae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurae/subscriptions","organizations_url":"https://api.github.com/users/aurae/orgs","repos_url":"https://api.github.com/users/aurae/repos","events_url":"https://api.github.com/users/aurae/events{/privacy}","received_events_url":"https://api.github.com/users/aurae/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-09T09:06:14Z","updated_at":"2015-11-09T13:59:05Z","closed_at":"2015-11-09T13:52:28Z","body":"I'm maintaining a Retrofit converter for LoganSquare. In the process of updating to the latest version `1.2.1` of LoganSquare, I wrote new test cases to check if the new generics feature would work with the Converter. However, I noticed that LoganSquare's serialization and unserialization with generics doesn't work at all for me, even in an isolated test project.\r\n\r\nThe error thrown upon running the unit test is:\r\n```\r\njava.lang.RuntimeException: JsonMapperLoaderImpl class not found. Have you included the steps needed for LoganSquare to process your annotations?\r\n\tat com.bluelinelabs.logansquare.LoganSquare.<clinit>(LoganSquare.java:31)\r\n\t... 35 more\r\n```\r\n\r\nI dug into the issue, and this error message isn't accurate for the case at hand, though. The JsonMapperLoaderImpl is properly generated and found on runtime (as shown by `Class.forName()`). Instead, the error happens in [LoganSquare's `mapperFor` method, line 247](https://github.com/bluelinelabs/LoganSquare/blob/master/core/src/main/java/com/bluelinelabs/logansquare/LoganSquare.java#L247), because it can't find a mapper for the generic implementation I'm passing in, which throws an NPE upon trying to insert the null value into the `PARAMETRIZED_OBJECT_MAPPERS` Map.\r\n\r\nI have created [a gist](https://gist.github.com/aurae/d6f27698d9d83d7296cb) containing my setup."},"comment":{"url":"https://api.github.com/repos/bluelinelabs/LoganSquare/issues/comments/155069241","html_url":"https://github.com/bluelinelabs/LoganSquare/issues/99#issuecomment-155069241","issue_url":"https://api.github.com/repos/bluelinelabs/LoganSquare/issues/99","id":155069241,"user":{"login":"aurae","id":3897705,"avatar_url":"https://avatars.githubusercontent.com/u/3897705?v=3","gravatar_id":"","url":"https://api.github.com/users/aurae","html_url":"https://github.com/aurae","followers_url":"https://api.github.com/users/aurae/followers","following_url":"https://api.github.com/users/aurae/following{/other_user}","gists_url":"https://api.github.com/users/aurae/gists{/gist_id}","starred_url":"https://api.github.com/users/aurae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurae/subscriptions","organizations_url":"https://api.github.com/users/aurae/orgs","repos_url":"https://api.github.com/users/aurae/repos","events_url":"https://api.github.com/users/aurae/events{/privacy}","received_events_url":"https://api.github.com/users/aurae/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T13:59:05Z","updated_at":"2015-11-09T13:59:05Z","body":"It works like a charm now! Thanks :)."}}