TD-4163 Null Reference Exception is thrown error