[Help]Char creating in 5525

12/27/2011 15:03 alex4war#1
So guys,

getting a message at the end of creating a char. after choosing a name and size i hit enter than it loads and gets stuck with this message:
system.nullreferenceexception object reference not set to an instance of an object

at Conquer_Online_Server.Database.EntityTable.CreateE ntity(EnitityCreate eC, GameState client, String& message) in D:\CoBastardsv7\CoBastardsv7\Database\EntityTable. cs:regel 581
//--> client.Account.EntityID = client.Entity.UID;

at Conquer_Online_Server.Network.PacketHandler.Handle Packet(Byte[] packet, GameState client) in D:\CoBastardsv7\CoBastardsv7\Network\PacketHandler .cs:regel 334
//-->Database.EntityTable.CreateEntity(EC, client, ref Message);

at Conquer_Online_Server.Network.PacketHandler.Handle Buffer(Byte[] buffer, GameState client) in D:\CoBastardsv7\CoBastardsv7\Network\PacketHandler .cs:regel 38
//-->ushort Length = BitConverter.ToUInt16(buffer, 0);

at Conquer_Online_Server.Program.GameServer_AnnounceR eceive(Byte[] arg1, ISocketWrapper arg2) in D:\CoBastardsv7\CoBastardsv7\Program.cs:regel 1409
//-->Network.PacketHandler.HandleBuffer(arg1, Client);

at Conquer_Online_Server.Network.Sockets.AsyncSocket. AsyncReceive(IAsyncResult res) in D:\CoBastardsv7\CoBastardsv7\Network\Sockets\Async Socket.cs:regel 89
//-->this.OnClientReceive(buffer, asyncState);

I checked configuration table and when i try to make a char the EntityID in configuaration goes +1 but the char isnt created in entity table.
12/27/2011 18:59 Spirited#2
"system.nullreferenceexception object reference not set to an instance of an object"
Now what the fuck could that mean... It's beyond me *complete sarcasm*, maybe Google has an answer for that.
12/27/2011 20:40 I don't have a username#3
We don't have your source. We need some codes provided. As far as I can see, then it's an object that you're trying to use, which have yet not been initialized. Make sure you have created an instance of the object, before you're using it.

Example:
Code:
//Causing null reference exception.
SomeObject Obj = null; //The object is null and yet not initialized.
Obj.SomeInteger = 10;//Trying to call an non existing object.

//Not causing null reference exception.
SomeObject Obj = new SomeObject();//Creating a new instance of SomeObject.
Obj.SomeInteger = 10;//We can now add a value to our integer within the object.
Suggestion: Learn about OOP.
12/27/2011 22:48 alex4war#4
W8 here is the link from the source i downloaded yesterday.

[Only registered and activated users can see links. Click Here To Register...]
12/27/2011 22:53 I don't have a username#5
Quote:
Originally Posted by alex4war View Post
W8 here is the link from the source i downloaded yesterday.

[Only registered and activated users can see links. Click Here To Register...]
:facepalm:

Just post the lines.
12/27/2011 23:20 alex4war#6
already posted the lines in my first post check the //--> ....
12/28/2011 00:21 I don't have a username#7
Check what object is null.
12/28/2011 00:31 F i n c h i#8
Quote:
Originally Posted by I don't have a username View Post
Check what object is null.
Hi Bauss.
12/28/2011 00:37 I don't have a username#9
Quote:
Originally Posted by F i n c h i View Post
Hi Bauss.
Hey baby ;)

/offtopic

OP I will check the source later and come back with the result, if I can bother.
12/28/2011 17:02 alex4war#10
okee