assign some variables so that they were not null when making a transferhandler, however, program still gives a null pointer exception