plc4x-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Rossignoli (Jira)" <j...@apache.org>
Subject [jira] [Created] (PLC4X-200) OPC-UA Driver not connecting if params string is not provided
Date Thu, 28 May 2020 08:29:00 GMT
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)

Mime
View raw message