Hi Kocian,
Welcome to our community! 
NullReferenceException means that a reference (“link”) to an instance is missing. Double click on the error message to see to which line in your code it is referring. That’ll help you analyse the problem further.
See also:
- Forum User Guides : How to mark a topic as solved