Index: ChangeLog
===================================================================
--- ChangeLog	(revision 8403)
+++ ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-01-22  Srinivasa Ragavan  <sragavan@novell.com>
+
+	** Fix for bug #481699
+
+	* camel-imap-folder.c (handle_copyuid): Don't crash if the server
+	returns you bad COPYUID.
+
 2008-01-21  Matthew Barnes  <mbarnes@redhat.com>
 
 	** Fixes part of bug #510303
Index: camel-imap-folder.c
===================================================================
--- camel-imap-folder.c	(revision 8389)
+++ camel-imap-folder.c	(working copy)
@@ -1607,8 +1607,10 @@ handle_copyuid (CamelImapResponse *respo
 		return;
 	}
 
-	imap_uid_array_free (src);
-	imap_uid_array_free (dest);
+	if (src)
+		imap_uid_array_free (src);
+	if (dest)
+		imap_uid_array_free (dest);
  lose:
 	g_warning ("Bad COPYUID response from server");
 }
