i got error on Arsenal Packethandler

06/21/2011 08:56 marlyandedsel#1
case 2202:
{
ArsenalInscribitionList list = new ArsenalInscribitionList();
client.Send(list.Build(packet, client.Entity.Guild));
break;
}
case 2203:
{
client.Entity.Guild.Arsenal.Update(client.Entity.G uild);
client.Send(client.Entity.Guild.A_Packet);
#region Handle
client.Send(packet);
byte pType = packet[4];
byte i_type = packet[8];
uint i_Uid = BitConverter.ToUInt32(packet, 12);
switch (pType)
{

I got error on the red part
can you help me about this please.....

and here is the image error in console
06/21/2011 10:55 zTek#2
if (Update == null) return;
06/21/2011 10:58 marlyandedsel#3
cant make condition with that... its not working
06/21/2011 12:06 { Angelius }#4
client.Entity.Guild.Arsenal.Update(client.Entity.G uild);

the client is null or the client guild is null

make sure you are creating a new instance of the client guild before you update it.
06/21/2011 19:12 zTek#5
case 2202:
{
ArsenalInscribitionList list = new ArsenalInscribitionList();
client.Send(list.Build(packet, client.Entity.Guild));
break;
}
case 2203:
{
if (client.Entity.Guild.Arsenal.Update == null) return;
client.Entity.Guild.Arsenal.Update(client.Entity.G uild);
client.Send(client.Entity.Guild.A_Packet);
#region Handle
client.Send(packet);
byte pType = packet[4];
byte i_type = packet[8];
uint i_Uid = BitConverter.ToUInt32(packet, 12);
switch (pType)
{
06/21/2011 20:43 marlyandedsel#6
Quote:
Originally Posted by { Angelius } View Post
client.Entity.Guild.Arsenal.Update(client.Entity.G uild);

the client is null or the client guild is null

make sure you are creating a new instance of the client guild before you update it.
you give me hint thanks Angelius..... I solved it with your help...
request closed..