{"action":"created","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-web/issues/226","labels_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/226/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/226/events","html_url":"https://github.com/vert-x3/vertx-web/issues/226","id":111829894,"number":226,"title":"ThymeleafTemplateEngineImpl.WebIContext Locale bug introduced in 3.1","user":{"login":"dragan088","id":15158300,"avatar_url":"https://avatars.githubusercontent.com/u/15158300?v=3","gravatar_id":"","url":"https://api.github.com/users/dragan088","html_url":"https://github.com/dragan088","followers_url":"https://api.github.com/users/dragan088/followers","following_url":"https://api.github.com/users/dragan088/following{/other_user}","gists_url":"https://api.github.com/users/dragan088/gists{/gist_id}","starred_url":"https://api.github.com/users/dragan088/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragan088/subscriptions","organizations_url":"https://api.github.com/users/dragan088/orgs","repos_url":"https://api.github.com/users/dragan088/repos","events_url":"https://api.github.com/users/dragan088/events{/privacy}","received_events_url":"https://api.github.com/users/dragan088/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"pmlopes","id":849467,"avatar_url":"https://avatars.githubusercontent.com/u/849467?v=3","gravatar_id":"","url":"https://api.github.com/users/pmlopes","html_url":"https://github.com/pmlopes","followers_url":"https://api.github.com/users/pmlopes/followers","following_url":"https://api.github.com/users/pmlopes/following{/other_user}","gists_url":"https://api.github.com/users/pmlopes/gists{/gist_id}","starred_url":"https://api.github.com/users/pmlopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmlopes/subscriptions","organizations_url":"https://api.github.com/users/pmlopes/orgs","repos_url":"https://api.github.com/users/pmlopes/repos","events_url":"https://api.github.com/users/pmlopes/events{/privacy}","received_events_url":"https://api.github.com/users/pmlopes/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-10-16T13:17:35Z","updated_at":"2015-11-17T16:02:00Z","closed_at":"2015-10-21T07:34:40Z","body":"Hi there,\r\n\r\nAfter upgrading to version 3.1 I started getting NullPointerException and narrow it down to the code that creates a new Locale object. I'm using Thymeleaf template engine.\r\n\r\n   private WebIContext(VariablesMap<String, Object> data, io.vertx.ext.web.Locale locale) {\r\n      this.data = data;\r\n      this.locale = new Locale(locale.language(), locale.country(), locale.variant());\r\n    }\r\n\r\nStandard Java Locale will throw NPE if country or variants are null, but will happily take an empty string. Maybe vert.x's own Locale should convert and use empty string rather than nulls for country and variant.\r\n\r\nThanks\r\n\r\nDragan"},"comment":{"url":"https://api.github.com/repos/vert-x3/vertx-web/issues/comments/157413854","html_url":"https://github.com/vert-x3/vertx-web/issues/226#issuecomment-157413854","issue_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/226","id":157413854,"user":{"login":"vietj","id":225674,"avatar_url":"https://avatars.githubusercontent.com/u/225674?v=3","gravatar_id":"","url":"https://api.github.com/users/vietj","html_url":"https://github.com/vietj","followers_url":"https://api.github.com/users/vietj/followers","following_url":"https://api.github.com/users/vietj/following{/other_user}","gists_url":"https://api.github.com/users/vietj/gists{/gist_id}","starred_url":"https://api.github.com/users/vietj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietj/subscriptions","organizations_url":"https://api.github.com/users/vietj/orgs","repos_url":"https://api.github.com/users/vietj/repos","events_url":"https://api.github.com/users/vietj/events{/privacy}","received_events_url":"https://api.github.com/users/vietj/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T16:02:00Z","updated_at":"2015-11-17T16:02:00Z","body":"we plan a 3.2 release within a couple of weeks."}}