Added check for variables #3236
Merge pull request #3237 from backmari/solution_userobject_3236

Added check for variables fixes #3236