jtebokkel - 2020-04-17

I'm getting an exception when I try and add a POU to a task in an HMI project.

Steps to reproduce:

  1. Create new HMI project in Codesys 3.5.15.40
  2. Create new programming POU
  3. Add new POU to MainTask
  4. Exception occurs
  5. Click continue
  6. POU shows in MainTask editor, but not in tree
  7. save project and reopen
  8. POU appears in tree and functions as expected.