Old user, new Quartz: Object reference not set to an instance of an object #968
-
Hi there, created a class and implemented the IJob and added Debug.Writeline("Hello World") in the Execute-method
This works but when the job finish I get an exception from line 194 in JobRunShell.cs System.NullReferenceException: 'Object reference not set to an instance of an object.' I can just ignore the error and then I'll get it at next successful run. My guess is that this is not normal. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Which version are you using? What are you returning from Execute? If I'd have to guess, I'd say you are returning null instead of task from Execute. |
Beta Was this translation helpful? Give feedback.
Which version are you using? What are you returning from Execute? If I'd have to guess, I'd say you are returning null instead of task from Execute.