Access Violation when filtering array

I’d like to filter the NULL-classes but UE4 crashes when I do this:

88340-bp.png

Is it supposed to crash? Other nodes allow me to use NULL-values for checking but the FilterArray (which actually gives me that option) crashes the whole game with an access violation. If I change it from “None” to another random class it does not crash.

Crash itself is definitely shouldn’t happen, Filter Array just doesn’t check IsValid(Class)

What you need to do is create your own function which would filter array for valid elements.

Mmm I was afraid of that. Still I believe that the FilterArray-node should support NULL-filtering. And if not it shouldn’t accept a NULL-value while compiling.

Also I believe it works the second time I call it because then at least 1 item in the array is not NULL. But in the first call every item in the array is NULL. Smells like a bug.

You must offer a vaild object to the Filter Class pin.
You can choose one on the pin itself , or use a class variable.
To get a class variable,first you need to create a new variable,and search for the class’ name in the type section,then hover the mouse on it , a context menu will pop out , then choose “Class”.Now the variable is created , but it’s still an empty object , you need to give it a default value or set its value before you use it in Filter Array