Discussion posts and replies are publicly visible
You will have to check your code for the "selectedLabels" attribute. Make sure it does not create a list with null values.