Blueprint Runtime Error: "Accessed None trying to read property...

I am successfully inserting items into a listview but when I try to modify the item individually to change the border individually for that item, I don’t seem to have access.
I’ve tried: validate, cast, and creating a variable, but I don’t seem to have access.


How can I manually change the item individually?

Blueprint Runtime Error: “Accessed None trying to read property V_Border”. Node: Set Brush Color Graph: EventGraph Function: Execute Ubergraph BP Character Creation Blueprint: BP_CharacterCreation

Need to see what “Construct BP Item Frame Character” does.

Right out of the gate I can tell you that if you don’t have an initialized instance of a class you won’t be able to change anything. It doesn’t exist, thus Access None, Always Invalid etc.

1 Like

Thank you so much. I needed how to pass the parameters. I thought I could directly, but no. I need an intermediary (object or structure) and each time the ADD is called, it calls the interface, which is where I must pass the parameters.
Thank you so much.

That’s not how list view works. You push the data into the object via exposed parameters:

image

And have the interface in the widget pull that data from the object and set its own elements. Example:

If you ever want to manipulate widget’s data associated with its list view object while a widget is instantiated, manipulate the object itself and have the list refresh active widget instances:

Depending on what is being done, this may not be even necessary.


You cannot do any of this:

Because the widget has yet to exist. The list view will automatically instantiate it when needed using the data in the object you provided.

1 Like

It’s how I did it.
I don’t like anything in the construct that is of type expose on spawn, I prefer to have different methods of the object to do different things. I find it more modular to have the object and have different functions for different purposes.
But that is personal opinion.
But you can also have it all at expose on Spawn.
Thanks for the pointer on manipulating the widget data associated with your listview object while instantiating it.

Call a function on the object that sets the data inside.

I know I know, it’s how I’m doing it.