Judging from the code, that seems very likely, but the actual line that the error occurs on should pinpoint which reference was missing.