{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1480","repository_url":"https://api.github.com/repos/openhab/openhab2-addons","labels_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1480/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1480/comments","events_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1480/events","html_url":"https://github.com/openhab/openhab2-addons/issues/1480","id":191734834,"number":1480,"title":"harmony binding bug","user":{"login":"tratho","id":23322485,"avatar_url":"https://avatars.githubusercontent.com/u/23322485?v=3","gravatar_id":"","url":"https://api.github.com/users/tratho","html_url":"https://github.com/tratho","followers_url":"https://api.github.com/users/tratho/followers","following_url":"https://api.github.com/users/tratho/following{/other_user}","gists_url":"https://api.github.com/users/tratho/gists{/gist_id}","starred_url":"https://api.github.com/users/tratho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tratho/subscriptions","organizations_url":"https://api.github.com/users/tratho/orgs","repos_url":"https://api.github.com/users/tratho/repos","events_url":"https://api.github.com/users/tratho/events{/privacy}","received_events_url":"https://api.github.com/users/tratho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-25T16:23:26Z","updated_at":"2016-11-26T15:58:11Z","closed_at":null,"body":"I trying since days to setup the harmony binding, and i'm unable to manage it. But now i think it is a bug.\r\nI'm not really sure if it is a bug in the harmony bindung but in the core framework.\r\nNervertheless i found it here, so i thought it would be the right way to post it here.\r\n\r\nAll Things were found correctly the hub, and the devices. Nevertheless the the device does not have a pointer the bridge (hub). I tried it with paperUI and with HABmin. There is no way to select the bridge (hub). This leads to a nullpointerException\r\n\r\n`2016-11-20 23:48:15.523 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while calling handler: java.lang.NullPointerException\r\njava.util.concurrent.ExecutionException: java.lang.NullPointerException\r\n\tat java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_65]\r\n\tat java.util.concurrent.FutureTask.get(FutureTask.java:206)[:1.8.0_65]\r\n\tat org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:186)[96:org.eclipse.smarthome.core:0.9.0.201611191809]\r\n\tat org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:79)[96:org.eclipse.smarthome.core:0.9.0.201611191809]\r\n\tat org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:63)[96:org.eclipse.smarthome.core:0.9.0.201611191809]\r\n\tat org.eclipse.smarthome.core.thing.internal.ThingManager.receiveCommand(ThingManager.java:349)[103:org.eclipse.smarthome.core.thing:0.9.0.201611191809]\r\n\tat org.eclipse.smarthome.core.items.events.AbstractItemEventSubscriber.receive(AbstractItemEventSubscriber.java:46)[96:org.eclipse.smarthome.core:0.9.0.201611191809]\r\n\tat org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:192)[96:org.eclipse.smarthome.core:0.9.0.201611191809]\r\n\tat org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1)[96:org.eclipse.smarthome.core:0.9.0.201611191809]\r\n\tat org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:177)[96:org.eclipse.smarthome.core:0.9.0.201611191809]\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65]\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65]\r\n\tat java.lang.Thread.run(Thread.java:745)[:1.8.0_65]\r\nCaused by: java.lang.NullPointerException\r\n\tat org.openhab.binding.harmonyhub.handler.HarmonyDeviceHandler.handleCommand(HarmonyDeviceHandler.java:90)[196:org.openhab.binding.harmonyhub:2.0.0.201611201812]\r\n\tat org.eclipse.smarthome.core.thing.internal.ThingManager$3.call(ThingManager.java:352)[103:org.eclipse.smarthome.core.thing:0.9.0.201611191809]\r\n\tat org.eclipse.smarthome.core.thing.internal.ThingManager$3.call(ThingManager.java:1)[103:org.eclipse.smarthome.core.thing:0.9.0.201611191809]\r\n\t... 5 more`\r\n\r\nSo i started it in the debugger and found out that the harmonyHub is not initialised in the device.\r\n\r\nI'm talking about `HarmonyHubHandler bridge` in `HarmonyDeviceHandler.java`\r\n\r\nBut as ` <supported-bridge-type-refs>` is a core function i'm not really sure, if it is a bug in the binding or somewhere else."},"comment":{"url":"https://api.github.com/repos/openhab/openhab2-addons/issues/comments/263070741","html_url":"https://github.com/openhab/openhab2-addons/issues/1480#issuecomment-263070741","issue_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1480","id":263070741,"user":{"login":"kungfoolfighting","id":17553106,"avatar_url":"https://avatars.githubusercontent.com/u/17553106?v=3","gravatar_id":"","url":"https://api.github.com/users/kungfoolfighting","html_url":"https://github.com/kungfoolfighting","followers_url":"https://api.github.com/users/kungfoolfighting/followers","following_url":"https://api.github.com/users/kungfoolfighting/following{/other_user}","gists_url":"https://api.github.com/users/kungfoolfighting/gists{/gist_id}","starred_url":"https://api.github.com/users/kungfoolfighting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kungfoolfighting/subscriptions","organizations_url":"https://api.github.com/users/kungfoolfighting/orgs","repos_url":"https://api.github.com/users/kungfoolfighting/repos","events_url":"https://api.github.com/users/kungfoolfighting/events{/privacy}","received_events_url":"https://api.github.com/users/kungfoolfighting/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T15:58:11Z","updated_at":"2016-11-26T15:58:11Z","body":"Hi tratho,\r\nthanks for looking into this.\r\nI managed to compile the bundle with your changes, but now I don't know how to get OpenHAB to use it.\r\nI have used the karaf console to load the bundle and start it, after I uninstalled the old HarmonyHub extension in the paperUI. \r\nBut I still get the nullpointer exception when using an item that is bound to a harmony thing.\r\nAny help?"}}
{"actor":{"display_login":"kungfoolfighting"}}