{"action":"opened","issue":{"url":"https://api.github.com/repos/doanduyhai/Achilles/issues/207","labels_url":"https://api.github.com/repos/doanduyhai/Achilles/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/doanduyhai/Achilles/issues/207/comments","events_url":"https://api.github.com/repos/doanduyhai/Achilles/issues/207/events","html_url":"https://github.com/doanduyhai/Achilles/issues/207","id":70570636,"number":207,"title":"Null Pointer Exception for usecase: LWP +Embedded Id","user":{"login":"rdhabalia","id":2898254,"avatar_url":"https://avatars.githubusercontent.com/u/2898254?v=3","gravatar_id":"","url":"https://api.github.com/users/rdhabalia","html_url":"https://github.com/rdhabalia","followers_url":"https://api.github.com/users/rdhabalia/followers","following_url":"https://api.github.com/users/rdhabalia/following{/other_user}","gists_url":"https://api.github.com/users/rdhabalia/gists{/gist_id}","starred_url":"https://api.github.com/users/rdhabalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdhabalia/subscriptions","organizations_url":"https://api.github.com/users/rdhabalia/orgs","repos_url":"https://api.github.com/users/rdhabalia/repos","events_url":"https://api.github.com/users/rdhabalia/events{/privacy}","received_events_url":"https://api.github.com/users/rdhabalia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-24T03:04:01Z","updated_at":"2015-04-24T03:04:01Z","closed_at":null,"body":"\r\nIf given table has compoundKey which requires to create EmbeddedKey in Achilles-library.\r\nNow, for given EmbeddedKey, we create below PropertyMeta object\r\nand propertyMeta.getCQLColumnName() = NULL for any embeddedKey.\r\nIn that case, it is throwing Null-Pointer Exception.\r\nIt means, somehow we should ignore PropertyMeta check for EmbeddedKey.\r\n\r\nhttps://github.com/doanduyhai/Achilles/blob/master/achilles-core/src/main/java/info/archinnov/achilles/internal/metadata/holder/EntityMetaTranscoder.java#L57\r\n\r\n\r\n private PropertyMeta findPropertyMetaByCQLName(String cqlName) {\r\n        for (PropertyMeta propertyMeta : meta.getAllMetasExceptCounters()) {\r\n            if (propertyMeta.getCQLColumnName().equals(cqlName) ) {\r\n                return propertyMeta;\r\n            }\r\n        }\r\n     "}}