Merge "Add error checks to the copyFrom functions." into honeycomb