{"action":"reopened","issue":{"url":"https://api.github.com/repos/dotCMS/core/issues/7561","repository_url":"https://api.github.com/repos/dotCMS/core","labels_url":"https://api.github.com/repos/dotCMS/core/issues/7561/labels{/name}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/7561/comments","events_url":"https://api.github.com/repos/dotCMS/core/issues/7561/events","html_url":"https://github.com/dotCMS/core/issues/7561","id":66912036,"number":7561,"title":"NPE trying to delete host with multi-language contents ","user":{"login":"bryanboza","id":2641437,"avatar_url":"https://avatars.githubusercontent.com/u/2641437?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanboza","html_url":"https://github.com/bryanboza","followers_url":"https://api.github.com/users/bryanboza/followers","following_url":"https://api.github.com/users/bryanboza/following{/other_user}","gists_url":"https://api.github.com/users/bryanboza/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanboza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanboza/subscriptions","organizations_url":"https://api.github.com/users/bryanboza/orgs","repos_url":"https://api.github.com/users/bryanboza/repos","events_url":"https://api.github.com/users/bryanboza/events{/privacy}","received_events_url":"https://api.github.com/users/bryanboza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotCMS/core/labels/Merged","name":"Merged","color":"5319e7"},{"url":"https://api.github.com/repos/dotCMS/core/labels/Type%20:%20bug","name":"Type : bug","color":"006b75"},{"url":"https://api.github.com/repos/dotCMS/core/labels/WF%20:%20Passed%20QA","name":"WF : Passed QA","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dotCMS/core/milestones/36","html_url":"https://github.com/dotCMS/core/milestones/3.5.1","labels_url":"https://api.github.com/repos/dotCMS/core/milestones/36/labels","id":1698135,"number":36,"title":"3.5.1","description":"","creator":{"login":"wezell","id":934364,"avatar_url":"https://avatars.githubusercontent.com/u/934364?v=3","gravatar_id":"","url":"https://api.github.com/users/wezell","html_url":"https://github.com/wezell","followers_url":"https://api.github.com/users/wezell/followers","following_url":"https://api.github.com/users/wezell/following{/other_user}","gists_url":"https://api.github.com/users/wezell/gists{/gist_id}","starred_url":"https://api.github.com/users/wezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wezell/subscriptions","organizations_url":"https://api.github.com/users/wezell/orgs","repos_url":"https://api.github.com/users/wezell/repos","events_url":"https://api.github.com/users/wezell/events{/privacy}","received_events_url":"https://api.github.com/users/wezell/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":4,"state":"open","created_at":"2016-04-11T15:19:45Z","updated_at":"2016-05-03T16:42:31Z","due_on":"2016-05-23T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-04-07T15:13:22Z","updated_at":"2016-05-03T16:42:31Z","closed_at":null,"body":"Related to #7407 \r\n\r\nWhen you create a new host with a multi language pages and this pages have content in different languages, if you try to delete the complete site, we are having a NPE \r\n```\r\n[07/04/15 09:10:06:038 CST] ERROR business.HostAPIImpl: \r\njava.lang.NullPointerException\r\n\tat com.dotmarketing.portlets.htmlpageasset.business.HTMLPageAssetAPIImpl.fromContentlet(HTMLPageAssetAPIImpl.java:151)\r\n\tat com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.loadPageByIdentifier(ESContentletAPIImpl.java:743)\r\n\tat com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.delete(ESContentletAPIImpl.java:1176)\r\n\tat com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.delete(ContentletAPIInterceptor.java:503)\r\n\tat com.dotmarketing.portlets.contentlet.business.HostAPIImpl$1DeleteHostThread.deleteHost(HostAPIImpl.java:587)\r\n\tat com.dotmarketing.portlets.contentlet.business.HostAPIImpl$1DeleteHostThread.run(HostAPIImpl.java:538)\r\n[07/04/15 09:10:13:897 CST]  INFO allocation.decider: [4b07f1eb-7e82-4df9-b64f-6a73cf1ccfa5] low disk watermark [15%] exceeded on [7UaAqFEQT3mZk4F-SRftxg][4b07f1eb-7e82-4df9-b64f-6a73cf1ccfa5] free: 27.4gb[11.8%], replicas will not be assigned to this node\r\n```\r\nTo recreate: \r\n- Create a new site \r\n- Create a new page in English and Spanish \r\n- Add content to this page in both languages\r\n- Stop the site and then try to delete \r\n\r\nTested on nightly build 2015-04-06 // H2 // FF\r\n"}}