 			}
 
 			var vcard:VCard = new VCard();
-			vcard.contact = user;
-			vcard.jid = user.jid;
+			if( contact )
+			{
+				vcard.contact = contact;
+				vcard.jid = contact.jid;
+			}
 			cache[ bareJID ] = vcard;
 
 			pushRequest( connection, vcard );

		{
			namespace ns = "vcard-temp";
			use namespace ns;
			
			var node:XML = XML( iq.getNode() );
			var vCardNode:XML = node.children()[ 0 ];


		 */
		public function VCard()
		{
		}

		/**
