{"action":"created","issue":{"url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4313","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4313/labels{/name}","comments_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4313/comments","events_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4313/events","html_url":"https://github.com/jOOQ/jOOQ/issues/4313","id":81529704,"number":4313,"title":"NullPointerException while fetching tables","user":{"login":"gschlager","id":473736,"avatar_url":"https://avatars.githubusercontent.com/u/473736?v=3","gravatar_id":"","url":"https://api.github.com/users/gschlager","html_url":"https://github.com/gschlager","followers_url":"https://api.github.com/users/gschlager/followers","following_url":"https://api.github.com/users/gschlager/following{/other_user}","gists_url":"https://api.github.com/users/gschlager/gists{/gist_id}","starred_url":"https://api.github.com/users/gschlager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gschlager/subscriptions","organizations_url":"https://api.github.com/users/gschlager/orgs","repos_url":"https://api.github.com/users/gschlager/repos","events_url":"https://api.github.com/users/gschlager/events{/privacy}","received_events_url":"https://api.github.com/users/gschlager/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/C:%20Code%20Generation","name":"C: Code Generation","color":"0000aa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/P:%20Medium","name":"P: Medium","color":"ffaaaa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/T:%20Defect","name":"T: Defect","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/111","html_url":"https://github.com/jOOQ/jOOQ/milestones/Version%203.7.0","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/111/labels","id":900413,"number":111,"title":"Version 3.7.0","description":"","creator":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars.githubusercontent.com/u/734593?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"open_issues":285,"closed_issues":57,"state":"open","created_at":"2014-12-11T12:56:14Z","updated_at":"2015-05-28T10:06:50Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-05-27T16:53:57Z","updated_at":"2015-05-28T10:21:00Z","closed_at":null,"body":"There's a `NullPointerException` when `regexFlags` in `AbstractDatabase` is not set.\r\n\r\n```\r\nERROR org.jooq.util.AbstractDatabase - Error while fetching tables\r\njava.lang.NullPointerException: null\r\n\tat java.util.ArrayList.<init>(ArrayList.java:177) ~[na:1.8.0_45]\r\n\tat org.jooq.util.AbstractDatabase.pattern(AbstractDatabase.java:243) ~[jooq-meta-3.6.1.jar:na]\r\n\tat org.jooq.util.AbstractDatabase.filterExcludeInclude(AbstractDatabase.java:1010) ~[jooq-meta-3.6.1.jar:na]\r\n\tat org.jooq.util.AbstractDatabase.filterExcludeInclude(AbstractDatabase.java:985) ~[jooq-meta-3.6.1.jar:na]\r\n\tat org.jooq.util.AbstractDatabase.getTables(AbstractDatabase.java:693) ~[jooq-meta-3.6.1.jar:na]\r\n```"},"comment":{"url":"https://api.github.com/repos/jOOQ/jOOQ/issues/comments/106263049","html_url":"https://github.com/jOOQ/jOOQ/issues/4313#issuecomment-106263049","issue_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4313","id":106263049,"user":{"login":"gschlager","id":473736,"avatar_url":"https://avatars.githubusercontent.com/u/473736?v=3","gravatar_id":"","url":"https://api.github.com/users/gschlager","html_url":"https://github.com/gschlager","followers_url":"https://api.github.com/users/gschlager/followers","following_url":"https://api.github.com/users/gschlager/following{/other_user}","gists_url":"https://api.github.com/users/gschlager/gists{/gist_id}","starred_url":"https://api.github.com/users/gschlager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gschlager/subscriptions","organizations_url":"https://api.github.com/users/gschlager/orgs","repos_url":"https://api.github.com/users/gschlager/repos","events_url":"https://api.github.com/users/gschlager/events{/privacy}","received_events_url":"https://api.github.com/users/gschlager/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T10:21:00Z","updated_at":"2015-05-28T10:21:00Z","body":"Yes, I believe so. We had to set a bunch of properties in order to get it to work.\r\n```java\r\ndatabase.setIncludes(new String[] { \".*\" });\r\ndatabase.setExcludes(new String[] {});\r\ndatabase.setRecordVersionFields(new String[] {});\r\ndatabase.setRecordTimestampFields(new String[] {});\r\ndatabase.setConfiguredCustomTypes(new ArrayList<CustomType>());\r\ndatabase.setConfiguredEnumTypes(new ArrayList<EnumType>());\r\ndatabase.setConfiguredForcedTypes(new ArrayList<ForcedType>());\r\ndatabase.setRegexFlags(new ArrayList<RegexFlag>());\r\n```\r\n\r\nI'm not sure if all of those are still required, but that's what it looks right now."}}