Problem with prediction

It is very hard to guess what is causing the problem without more information. It seems you are trying to construct a data frame and one of the objects is empty, providing zero rows. Can you make a reproducible example?