]> git.basschouten.com Git - openhab-addons.git/commitdiff
[knx] GroupRead / SendToKNX fails with NullPointerException #12040 (#12074)
authorFrank Seidinger <frank.seidinger@gmail.com>
Sat, 22 Jan 2022 19:38:33 +0000 (20:38 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Jan 2022 19:38:33 +0000 (20:38 +0100)
* Fixed NullPointerException due to missing SecureApplicationLayer in creation of ProcessCommunicationResponder

Signed-off-by: Frank Seidinger <frank.seidinger@gmail.com>
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/AbstractKNXClient.java

index 4027c6ba9bef01e7e8038b2dd1a0e707d5026805..695edb277edfea3ced5148c377fbc3528cfbe272 100644 (file)
@@ -54,6 +54,8 @@ import tuwien.auto.calimero.process.ProcessCommunicator;
 import tuwien.auto.calimero.process.ProcessCommunicatorImpl;
 import tuwien.auto.calimero.process.ProcessEvent;
 import tuwien.auto.calimero.process.ProcessListener;
+import tuwien.auto.calimero.secure.SecureApplicationLayer;
+import tuwien.auto.calimero.secure.Security;
 
 /**
  * KNX Client which encapsulates the communication with the KNX bus via the calimero libary.
@@ -192,7 +194,8 @@ public abstract class AbstractKNXClient implements NetworkLinkListener, KNXClien
             processCommunicator.addProcessListener(processListener);
             this.processCommunicator = processCommunicator;
 
-            ProcessCommunicationResponder responseCommunicator = new ProcessCommunicationResponder(link, null);
+            ProcessCommunicationResponder responseCommunicator = new ProcessCommunicationResponder(link,
+                    new SecureApplicationLayer(link, Security.defaultInstallation()));
             this.responseCommunicator = responseCommunicator;
 
             link.addLinkListener(this);