{"action":"created","issue":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/1738","labels_url":"https://api.github.com/repos/querydsl/querydsl/issues/1738/labels{/name}","comments_url":"https://api.github.com/repos/querydsl/querydsl/issues/1738/comments","events_url":"https://api.github.com/repos/querydsl/querydsl/issues/1738/events","html_url":"https://github.com/querydsl/querydsl/issues/1738","id":125437921,"number":1738,"title":"NullPointerReference on second level reference in QEntity","user":{"login":"Sbou","id":3451162,"avatar_url":"https://avatars.githubusercontent.com/u/3451162?v=3","gravatar_id":"","url":"https://api.github.com/users/Sbou","html_url":"https://github.com/Sbou","followers_url":"https://api.github.com/users/Sbou/followers","following_url":"https://api.github.com/users/Sbou/following{/other_user}","gists_url":"https://api.github.com/users/Sbou/gists{/gist_id}","starred_url":"https://api.github.com/users/Sbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sbou/subscriptions","organizations_url":"https://api.github.com/users/Sbou/orgs","repos_url":"https://api.github.com/users/Sbou/repos","events_url":"https://api.github.com/users/Sbou/events{/privacy}","received_events_url":"https://api.github.com/users/Sbou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/querydsl/querydsl/labels/progress","name":"progress","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-07T17:02:08Z","updated_at":"2016-01-11T16:43:48Z","closed_at":null,"body":"Hi,\r\n\r\nI have an entity which has areference to another and this last has a reference to a third entity.\r\nEx : User->Address->City\r\nWhen I want to use QUser.user.address.city, it was null.\r\nMy application's first version worked and the only difference I found is in QUser in constructor.\r\n\r\nIn my first release I have this line :\r\n```java\r\nthis.address= (inits.isInitialized(\"address\") ? new QAddress(forProperty(\"address\"), inits.get(\"address\")) : null);\r\n```\r\n\r\nBut in new release, I have :\r\n```java\r\nthis.address= (inits.isInitialized(\"address\") ? new QAddress(forProperty(\"address\")) : null);\r\n```\r\n\r\nHow QueryDsql choose implementation ?\r\n\r\nThanks,"},"comment":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/comments/170613131","html_url":"https://github.com/querydsl/querydsl/issues/1738#issuecomment-170613131","issue_url":"https://api.github.com/repos/querydsl/querydsl/issues/1738","id":170613131,"user":{"login":"timowest","id":574167,"avatar_url":"https://avatars.githubusercontent.com/u/574167?v=3","gravatar_id":"","url":"https://api.github.com/users/timowest","html_url":"https://github.com/timowest","followers_url":"https://api.github.com/users/timowest/followers","following_url":"https://api.github.com/users/timowest/following{/other_user}","gists_url":"https://api.github.com/users/timowest/gists{/gist_id}","starred_url":"https://api.github.com/users/timowest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timowest/subscriptions","organizations_url":"https://api.github.com/users/timowest/orgs","repos_url":"https://api.github.com/users/timowest/repos","events_url":"https://api.github.com/users/timowest/events{/privacy}","received_events_url":"https://api.github.com/users/timowest/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T16:43:48Z","updated_at":"2016-01-11T16:43:48Z","body":"I added a test and couldn't replicate the issue. How does City look like? Also what domain change did you that introduced the change in the Q-types?"}}