as I have lost my pack (L2J archid) forum account (I still wait for ya Sethek :P), I post here, as it can help more people, and it's not a relative question to L2Jarchid, but java in general.
NPE... For NullPointerException. I got a lot of those errors, for many different things.
- my voicedcommandhandlers bug cause of that ;
- sieges doors make this error, but work ;
-throne siege is buggy too, when i try to sit on it i got an NPE.
So I would like to ask : what are those errors, and how I can fix it. I ask for theory, and perhaps if u got an existing exemple to show (from any pack, I don't care) it would be cute.
I got a really lil idea about it ; I think it's an exception which come when something is null. But got no idea if I have to set a variable for that, etc.
Those errors seem to occur when I double click, or more accuratly, when I already made that action one time.
For example, castle doors ; one click on any door and i can still move. If I click on one door, and click one time on another door, no error too. But if I double click on any gate, I got NPE error, and my character is "stuck" until I click on me.
About my voicecommand, it's more drama as it bugs the entire command : when you type .stats you got stats (shared on this forum :P), it's bug differently according if i'm an admin or no. I didn't understand how, but it happens and block the command (only show one NPE error w/o show something anymore) until a client restart...
I "coded" this voicecommandhandler 3 times, 3 differents ways (using or no the npchtmlmessage, and reading sources from L2j interlude, l2jfree interlude, and l2jumbrella gracia 1.5). I don't understand, cause my voicecommander is P.E.R.F.E.C.T and it makes me cry to see I spend so much time on a stupid NPE error lol.
Well, any point of view can help... If you need screenshots of errors, just tell me.
Exception in thread Normal packet Pool xx
java.lang.NullPointerException
at ihateNPE.gamerserver.network.clientpackets.L2GameClientPacket.run
(xx = number of the error, it goes ++ each time...)
And no I didn't mod L2gameclientpacket... And ofc, it's not ihateNPE :p.
Fresh databases directly from the source!
• Cold leads
• Registrations
• First deposits
• Wealthy individuals
Up-to-date GEOs!
Guaranteed replacement of invalids!
Work through guarantor+
Contacts:
Telegram — @yashkatsigun
We build reliable relationships with our users!
Hello!
We’re not here just for the sake of it our goal is to create long-term and honest relationships with everyone who uses our services.
It’s important to us that you feel safe and confident.
If something goes wrong or you have any questions, don’t hesitate to contact our support.
We won’t just respond we’ll personally look into everything, help solve any problem, and make sure it’s convenient and comfortable for you to work with us.
Visit our website: Vibe-sms.net
Telegram: https://t.me/vibe_sms
Question
Tryskell
Hi all,
as I have lost my pack (L2J archid) forum account (I still wait for ya Sethek :P), I post here, as it can help more people, and it's not a relative question to L2Jarchid, but java in general.
NPE... For NullPointerException. I got a lot of those errors, for many different things.
- my voicedcommandhandlers bug cause of that ;
- sieges doors make this error, but work ;
-throne siege is buggy too, when i try to sit on it i got an NPE.
So I would like to ask : what are those errors, and how I can fix it. I ask for theory, and perhaps if u got an existing exemple to show (from any pack, I don't care) it would be cute.
I got a really lil idea about it ; I think it's an exception which come when something is null. But got no idea if I have to set a variable for that, etc.
Those errors seem to occur when I double click, or more accuratly, when I already made that action one time.
For example, castle doors ; one click on any door and i can still move. If I click on one door, and click one time on another door, no error too. But if I double click on any gate, I got NPE error, and my character is "stuck" until I click on me.
About my voicecommand, it's more drama as it bugs the entire command : when you type .stats you got stats (shared on this forum :P), it's bug differently according if i'm an admin or no. I didn't understand how, but it happens and block the command (only show one NPE error w/o show something anymore) until a client restart...
I "coded" this voicecommandhandler 3 times, 3 differents ways (using or no the npchtmlmessage, and reading sources from L2j interlude, l2jfree interlude, and l2jumbrella gracia 1.5). I don't understand, cause my voicecommander is P.E.R.F.E.C.T and it makes me cry to see I spend so much time on a stupid NPE error lol.
Well, any point of view can help... If you need screenshots of errors, just tell me.
(xx = number of the error, it goes ++ each time...)
And no I didn't mod L2gameclientpacket... And ofc, it's not ihateNPE :p.
10 answers to this question
Recommended Posts