{"action":"created","issue":{"url":"https://api.github.com/repos/lviggiano/owner/issues/119","labels_url":"https://api.github.com/repos/lviggiano/owner/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/lviggiano/owner/issues/119/comments","events_url":"https://api.github.com/repos/lviggiano/owner/issues/119/events","html_url":"https://github.com/lviggiano/owner/issues/119","id":63935539,"number":119,"title":"Respect default environment properties","user":{"login":"spr1ng","id":194951,"avatar_url":"https://avatars.githubusercontent.com/u/194951?v=3","gravatar_id":"","url":"https://api.github.com/users/spr1ng","html_url":"https://github.com/spr1ng","followers_url":"https://api.github.com/users/spr1ng/followers","following_url":"https://api.github.com/users/spr1ng/following{/other_user}","gists_url":"https://api.github.com/users/spr1ng/gists{/gist_id}","starred_url":"https://api.github.com/users/spr1ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spr1ng/subscriptions","organizations_url":"https://api.github.com/users/spr1ng/orgs","repos_url":"https://api.github.com/users/spr1ng/repos","events_url":"https://api.github.com/users/spr1ng/events{/privacy}","received_events_url":"https://api.github.com/users/spr1ng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-24T08:32:01Z","updated_at":"2015-03-24T11:27:25Z","closed_at":"2015-03-24T11:25:56Z","body":"Consider the following case:\r\n\r\n```ini\r\n# config.properties\r\nserver.host=http://localhost\r\nserver.port=80\r\nqa.server.host=http://example.com\r\n```\r\n\r\n```java\r\n// Config.java\r\npublic interface Config extends org.aeonbits.owner.Config {\r\n    @DefaultValue(\"qa\")\r\n    String env();\r\n    String host();\r\n    int port();\r\n}\r\n```\r\n\r\n```java\r\n// Main.java\r\npublic static void main(String[] args) {\r\n    Config config = getConfig();\r\n    System.out.println(\"---> env: \" + config.env());\r\n    System.out.println(\"---> host: \" + config.host());\r\n    System.out.println(\"---> port: \" + config.port());\r\n}\r\n```\r\n\r\n**Expected:**\r\n```\r\n[java] ---> env: qa\r\n[java] ---> host: http://example.com\r\n[java] ---> port: 80\r\n```\r\n\r\n**Actual:**\r\n```\r\n[java] ---> env: qa\r\n[java] ---> host: http://example.com\r\n[java] Exception in thread \"main\" java.lang.NullPointerException\r\n[java]         at com.sun.proxy.$Proxy6.port(Unknown Source)\r\n[java]         at Main.main(Unknown Source)\r\n[java] Java Result: 1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/lviggiano/owner/issues/comments/85456457","html_url":"https://github.com/lviggiano/owner/issues/119#issuecomment-85456457","issue_url":"https://api.github.com/repos/lviggiano/owner/issues/119","id":85456457,"user":{"login":"lviggiano","id":160928,"avatar_url":"https://avatars.githubusercontent.com/u/160928?v=3","gravatar_id":"","url":"https://api.github.com/users/lviggiano","html_url":"https://github.com/lviggiano","followers_url":"https://api.github.com/users/lviggiano/followers","following_url":"https://api.github.com/users/lviggiano/following{/other_user}","gists_url":"https://api.github.com/users/lviggiano/gists{/gist_id}","starred_url":"https://api.github.com/users/lviggiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lviggiano/subscriptions","organizations_url":"https://api.github.com/users/lviggiano/orgs","repos_url":"https://api.github.com/users/lviggiano/repos","events_url":"https://api.github.com/users/lviggiano/events{/privacy}","received_events_url":"https://api.github.com/users/lviggiano/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T11:27:25Z","updated_at":"2015-03-24T11:27:25Z","body":"Thanks!"}}