You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by "Alessandro Rossignoli (Jira)" <ji...@apache.org> on 2020/05/28 08:29:00 UTC

[jira] [Created] (PLC4X-200) OPC-UA Driver not connecting if params string is not provided

Alessandro Rossignoli created PLC4X-200:
-------------------------------------------

             Summary: OPC-UA Driver not connecting if params string is not provided
                 Key: PLC4X-200
                 URL: https://issues.apache.org/jira/browse/PLC4X-200
             Project: Apache PLC4X
          Issue Type: Bug
          Components: Driver-OPC-UA
    Affects Versions: 0.7.0
            Reporter: Alessandro Rossignoli


When creating a new connection to the driver without params, using the TCP transport method, the driver will throw a null pointer exception.

method: private static String getOptionString(String params)

file: _OpcuaTcpPlcConnection.java_ line 558

I am not really an expert of the OPC UA specificatin, but I think that a null check for this could solve the problem easily.

This issue was not present on version 0.5.0, now upgrading to 0.7.0 the connection cannot be established and I am pretty sure that the getOptionString method that was introduced is the cause of this.

 

I am available for a PR



--
This message was sent by Atlassian Jira
(v8.3.4#803005)