Uploaded image for project: 'Apache PLC4X'
  1. Apache PLC4X
  2. PLC4X-200

OPC-UA Driver not connecting if params string is not provided

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.9.0
    • Driver-OPC-UA
    • Patch

    Description

      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

      Attachments

        Activity

          People

            hutcheb Ben Hutcheson
            itaross Alessandro Rossignoli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified