{"action":"closed","issue":{"url":"https://api.github.com/repos/marinmitev/smarthome/issues/132","labels_url":"https://api.github.com/repos/marinmitev/smarthome/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/marinmitev/smarthome/issues/132/comments","events_url":"https://api.github.com/repos/marinmitev/smarthome/issues/132/events","html_url":"https://github.com/marinmitev/smarthome/issues/132","id":110636739,"number":132,"title":"NPE when adding a rule with missing module types","user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"danchom","id":11029931,"avatar_url":"https://avatars.githubusercontent.com/u/11029931?v=3","gravatar_id":"","url":"https://api.github.com/users/danchom","html_url":"https://github.com/danchom","followers_url":"https://api.github.com/users/danchom/followers","following_url":"https://api.github.com/users/danchom/following{/other_user}","gists_url":"https://api.github.com/users/danchom/gists{/gist_id}","starred_url":"https://api.github.com/users/danchom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danchom/subscriptions","organizations_url":"https://api.github.com/users/danchom/orgs","repos_url":"https://api.github.com/users/danchom/repos","events_url":"https://api.github.com/users/danchom/events{/privacy}","received_events_url":"https://api.github.com/users/danchom/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-10-09T11:08:33Z","updated_at":"2015-10-14T11:20:29Z","closed_at":"2015-10-14T11:20:29Z","body":"I have a rule that gets imported through the bundle importer. This seems to happen before the according module types are loaded and I get:\r\n```\r\n13:07:04.479 [ESH-safeCall-3] INFO  smarthome.event.RuleAddedEvent - Rule 'javascript.rule1' has been added.\r\n13:07:04.493 [Automation Provider Processing Queue] DEBUG o.e.s.a.core.internal.RuleEngine - Added rule 'javascript.rule1'\r\nException in thread \"Automation Provider Processing Queue\" java.lang.NullPointerException\r\n\tat org.eclipse.smarthome.automation.core.internal.RuleEngine.setDefautlValues(RuleEngine.java:1137)\r\n\tat org.eclipse.smarthome.automation.core.internal.RuleEngine.resolveDefaultValues(RuleEngine.java:1127)\r\n\tat org.eclipse.smarthome.automation.core.internal.RuleEngine.setRule(RuleEngine.java:336)\r\n\tat org.eclipse.smarthome.automation.core.internal.RuleRegistryImpl.addIntoRuleEngine(RuleRegistryImpl.java:87)\r\n\tat org.eclipse.smarthome.automation.core.internal.RuleRegistryImpl.add(RuleRegistryImpl.java:78)\r\n\tat org.eclipse.smarthome.automation.core.internal.RuleRegistryImpl.add(RuleRegistryImpl.java:1)\r\n\tat org.eclipse.smarthome.automation.internal.core.provider.RuleResourceBundleImporter.importData(RuleResourceBundleImporter.java:213)\r\n\tat org.eclipse.smarthome.automation.internal.core.provider.RuleResourceBundleImporter.processAutomationProvider(RuleResourceBundleImporter.java:183)\r\n\tat org.eclipse.smarthome.automation.internal.core.provider.AutomationResourceBundlesEventQueue.processBundleChanged(AutomationResourceBundlesEventQueue.java:319)\r\n\tat org.eclipse.smarthome.automation.internal.core.provider.AutomationResourceBundlesEventQueue.run(AutomationResourceBundlesEventQueue.java:144)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"}}