{"action":"opened","issue":{"url":"https://api.github.com/repos/jknack/handlebars.java/issues/451","labels_url":"https://api.github.com/repos/jknack/handlebars.java/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/jknack/handlebars.java/issues/451/comments","events_url":"https://api.github.com/repos/jknack/handlebars.java/issues/451/events","html_url":"https://github.com/jknack/handlebars.java/issues/451","id":117549851,"number":451,"title":"Handlebars template breaks for certain data types being applied via JSON","user":{"login":"aku251","id":15886316,"avatar_url":"https://avatars.githubusercontent.com/u/15886316?v=3","gravatar_id":"","url":"https://api.github.com/users/aku251","html_url":"https://github.com/aku251","followers_url":"https://api.github.com/users/aku251/followers","following_url":"https://api.github.com/users/aku251/following{/other_user}","gists_url":"https://api.github.com/users/aku251/gists{/gist_id}","starred_url":"https://api.github.com/users/aku251/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aku251/subscriptions","organizations_url":"https://api.github.com/users/aku251/orgs","repos_url":"https://api.github.com/users/aku251/repos","events_url":"https://api.github.com/users/aku251/events{/privacy}","received_events_url":"https://api.github.com/users/aku251/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T09:48:11Z","updated_at":"2015-11-18T09:48:11Z","closed_at":null,"body":"Hi,\r\nWe are currently using jknack.handlebars;version=\"1.3.2\" in an osgi environment (under Adobe AEM). Now we have come across an issue where the template breaks for the first time when the JSON data applied on the handlebars template have:\r\n1. a null value - this was mainly when we use of \"if\" helper inside \"each\" condition. For example {{#if <null value>}}\r\n2.  a java object - example an array or hash map object.\r\n\r\nSo when we apply this json over the template it breaks for the first time.\r\nAnd all these issues get resolved when the aem compatible osgi bundle having the handle bars jar is refreshed. \r\n\r\nPlease let us know the workaround or if it has been fixed in later versions.\r\n"}}