Skip to content

Bug: Restoring libraries in a project with only one library throws a "object reference not set" error #165

@laspir

Description

@laspir

Type: Bug
TwinPack Version: 1.4.3
TwinCAT Version: 3.1.4029.29
Reproducible: Yes

When "Restore All" is run on a Project with only 1 library

Image

The library is installed but an error message is thrown as shown. This doesn't seem to have any effect on the end result as it is possible to continue working normally afterwards.

Image

If more than one library is added to the project, this error message no longer appears.

Before Restore All
Image

After Restore All
Image

If afterwards the additional libraries are removed again, such that the project once more has only one library, then the error message appears again.

Saving the PLC-Project as .tpzip Archive seems to resolve the issue, until TwinCAT is restarted. Then the issue appears again.

Attached is:

  • Two test projects
    -- one with only the test library, where the error occurs
    -- one with two libraries installed, where the error does NOT occur.
  • Config.json files for both test projects, to be copied in the .Zeugewerk folder before running the tests.

plcWithError_config.json
workingPlc_config.json
TestProject.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions