ID 424951 - Nuke crashes when the nuke.Layer function uses a NoneType value as an argument

Follow

Problem summary
Nuke crashes when the nuke.Layer function uses a NoneType value as an argument.

An example of a NoneType argument would be the word 'None'.

Customer reported version
nuke.11.2v3

Customer reported platform
windows7

Steps to reproduce

1) Open a new Nuke session

2) In the Script Editor, paste in the following code
nuke.Layer('test', ['blue', None])

3) Select the code and run
Result: Nuke crashes

Expected behaviour
Nuke should interpret that this is a NoneType argument being entered and not allow the function to run.

Actual behaviour
Nuke does not current interpret that this is a NoneType argument and crashes Nuke by calling the null operation.

Workaround
None.

Reproduced by support
This bug has been reproduced in:
Nuke 12.0v4 - Windows 10 - CentOS 7 - MacOS 10.14.6
Nuke 12.0v1 - Windows 10
Nuke 11.3v1 - Windows 10
Nuke 11.2v1 - Windows 10
Nuke 11.1v1 - Windows 10
Nuke 11.0v1 - Windows 10
Nuke 10.5v1 - Windows 10
Nuke 10.0v1 - Windows 10
Nuke 9.0v1 - Windows 10 - CentOS 7 - MacOS 10.14.6

Earliest version tested
Nuke 9.0v1
- This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why