Index: bp-core/bp-core-avatars.php
===================================================================
--- bp-core/bp-core-avatars.php	(revision 5947)
+++ bp-core/bp-core-avatars.php	(working copy)
@@ -546,7 +546,11 @@
 
 	// Crop the image
 	$full_cropped  = wp_crop_image( $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, bp_core_avatar_full_width(), bp_core_avatar_full_height(), false, $avatar_folder_dir . '/' . $full_filename );
+	if ( is_wp_error($full_cropped) || !$full_cropped )
+		return false;
 	$thumb_cropped = wp_crop_image( $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, bp_core_avatar_thumb_width(), bp_core_avatar_thumb_height(), false, $avatar_folder_dir . '/' . $thumb_filename );
+	if ( is_wp_error($thumb_cropped) || !$thumb_cropped )
+		return false;
 
 	// Remove the original
 	@unlink( $original_file );
