Dynamo: Bug, Dynamo 0.82: Revit nodes fail if the first item in the input list is a null or an empty list.

Created on 6 Sep 2015  路  10Comments  路  Source: DynamoDS/Dynamo

I would classify this as a major annoyance. I first noticed it happening in 0.81. So far the following nodes are affected:

Element.GetParameterValueByName
Element.SetParameterByName
Element.Name

there might be more.

There is no problem if the null value or empty list is not at head of the list:
2015-09-06_10-34-49

2015-09-06_10-35-15

However, if it is, the whole list fails to process:
2015-09-06_10-34-59

2015-09-06_10-35-26

We can remedy this with a list.map but this is not an optimal approach:
2015-09-06_10-40-29

1.x bug needs investigation

All 10 comments

@dimven - what is the error /warning shown on these nodes ?

Hi @monikaprabhu , the error message is:
_Warning: Internal error, please report: Dereferencing a non-pointer. (3f47aacd)_

@ke-yu, can it be related to Type inferencing issue?

@dimven - we have an open issue related to this - which is tracked at - MAGN-6873.Im afraid its the same issue as -https://github.com/DynamoDS/Dynamo/issues/4116. I'll leave a messege to development team to see if we can increase the priority of fixing this. Thanks for reporting it.

@dimven - you can use List.Clean to remove the null/EmptyList from the input to Element.SetparameterName.
list_clean

@monikaprabhu Thanks for the info.
I'd personally prefer to keep the null value there, so that the structure of the list is preserved.

Internal issue has been closed.

was #7178 merged in 1.21? This is still an issue active issue:
revit_2017-03-17_21-16-45

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vykrum picture vykrum  路  6Comments

askgrkumar picture askgrkumar  路  4Comments

dimven picture dimven  路  10Comments

andydandy74 picture andydandy74  路  8Comments

dbaldacchino picture dbaldacchino  路  7Comments