The log shows this runtime error:
java.lang.ClassCastException: null (sleepScoreHandler)
No line number. I have looked in the method sleepScoreHandler, but can't identify any "casting" that could throw an exception because of a null value.
My approach to debugging this is to insert a bunch of log.debug statements into the code to see what the value of variables is at various places. Is there some other, more efficient approach to this though? I don't understand why HE fails to give me a line number for debugging?
Note: my question here is more about what approach to take to debug this, rather than what's specifically wrong with my code.