Imported from Git Hub
TransAdapter has nullPointerException handling