Segmentation fault fix - 'from' can be NULL in amp_to_amp