this is the save into code what might be the issue here
Discussion posts and replies are publicly visible
The error message says "Received null input for dictionary". So your rule input seems to be null.
What is the structure of your dictionary? Did you initialize it before you passed it as a rule input? It must have a value/structure in order to update it.