[knx] GroupRead / SendToKNX fails with NullPointerException #12040 (#12074)

* Fixed NullPointerException due to missing SecureApplicationLayer in creation of ProcessCommunicationResponder

Signed-off-by: Frank Seidinger <frank.seidinger@gmail.com>
This commit is contained in:
Frank Seidinger 2022-01-22 20:38:33 +01:00 committed by GitHub
parent e9c9acdbfd
commit dd08a2a1e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View 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);