In reply to Rogers:
It is really difficult to provide help without looking to the full picture, but I’d say you have not set the virtual interfaces in the tb this is normally done using config_db, so when your driver tries to get them from the config object they are null.
HTH,
-R