Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 00:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



NullException console error .. anyhelp?

Discussion on NullException console error .. anyhelp? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Paristôn's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 101
Received Thanks: 51
NullException console error .. anyhelp?

I have got an error in my source's console.

This is it :



This is the code in the ThrillingSpooks.cs class :




In this line :

if (clients.Team.SpookMap != null)



I get this error when i make a team and try to enter the ThriilingSpook's gate.

Any help please?
Paristôn is offline  
Old 04/19/2015, 17:54   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Few things...

#1: You check if clients.Team.SpookMap is not null then immediately after try to check if it IS null... fix your flow of logic
#2: You never check if clients is null or clients.Team is null

As said in the error, line 42 is what's null so just breakpoint it and see what's null and then re-write your code to actually be sensible.
pro4never is offline  
Old 04/19/2015, 19:57   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
Client.Team.SpookMap = spookmap;

Client.Team sure is null
teroareboss1 is offline  
Old 04/20/2015, 00:36   #4
 
Paristôn's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 101
Received Thanks: 51
Ouch, now i understand the problem
Thank you @pro4never & @terolareboss1

It's done ^_^
Paristôn is offline  
Reply


Similar Threads Similar Threads
Error In Console
05/10/2011 - CO2 Private Server - 4 Replies
Today after working on NewestCOServer (Don't judge me), I started up the server, tried to login, then got this error in the console: http://s2.postimage.org/9qigila2q/untitled.jpg Any solution for this? Thanks
GM Console Error?
05/23/2010 - Silkroad Online - 10 Replies
Well to make it quick, i just enabled the gm console but when i type /camera it doest appear the box in the right that says next previous draw or whatever... and /warp doesnt work either for me :S
Console Error
03/04/2010 - CO2 Private Server - 0 Replies
could someone help me with this
Console Error!
02/28/2010 - CO2 Private Server - 1 Replies
I am running this server on VPS. This is what happens when I try to login: http://i47.tinypic.com/dbl74n.jpg How can I fix this?
Console Error
08/30/2009 - CO2 Private Server - 8 Replies
MySql.Data.MySqlClient.MySqlException: Connection unexpectedly terminated ---> System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: count at System.IO.BufferedStream.Read(Byte array, Int32 offset, Int32 count) at MySql.Data.MySqlClient.PacketReader.Read(Byte& buffer, Int64 pos, Int64 len) --- End of inner exception stack trace --- at MySql.Data.MySqlClient.PacketReader.Read(Byte& buffer, Int64 pos, Int64 len) at...



All times are GMT +1. The time now is 00:54.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.