Ovenuç® Posted August 1, 2013 Posted August 1, 2013 Pfff let me explain it in even simpler words. This is not a Double check because the one is in the AttackRequest fine and the other is in the L2Character or whatever file. Yeah it passes through both files so it might be a double check for L2phx BUT for java coding as a sum it is a MUST check to prevent NPEs which will cuz memory leaks and -beep- up your stability. Dont think what you do as a player and that this might look impossible. L2Char or PcInst are huge classes with 24/7 used methods. If these methods are not null checked then you are -beep-ed. I cant make it simpler. just now i test it i remove the null check and i cant attack without phx and with phx...
Intrepid Posted August 1, 2013 Posted August 1, 2013 okay, change doAttack to throws protected void doAttack(L2Character target) throws NullPointerException :troll: :troll: Or he should just stop :DDDD
Kràtos Posted August 1, 2013 Posted August 1, 2013 is that you? http://www.l2jserver.com/forum/viewtopic.php?f=4&t=28086&p=167460&hilit=WHAT+IS+NULL#p167460 >:D
xdem Posted August 1, 2013 Author Posted August 1, 2013 try { doAttack(); } catch (NullPointerException e) { final boolean sucker = true; while(sucker) System.out.println("I suck"); } L2J Prim Private source, the way to be the best
Guest Elfocrash Posted August 1, 2013 Posted August 1, 2013 is that you? http://www.l2jserver.com/forum/viewtopic.php?f=4&t=28086&p=167460&hilit=WHAT+IS+NULL#p167460 >:D HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA You little bastard you made me fall of my chair laughing. What a stalker hahahhaha just now i test it i remove the null check and i cant attack without phx and with phx... Oh god you cannot test this null check and expect you get a straight NPE in console. You need 200 players hitting so you might get the chance to get one or too. Fuck phx, you are talking about java coding now
Ovenuç® Posted August 1, 2013 Posted August 1, 2013 Or he should just stop :DDDD i am waiting answer from l2j team and we will see :) from now relax i test so the check is needless
Intrepid Posted August 1, 2013 Posted August 1, 2013 just now i test it i remove the null check and i cant attack without phx and with phx... XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
Trance Posted August 1, 2013 Posted August 1, 2013 XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD We should reply there.
Ovenuç® Posted August 1, 2013 Posted August 1, 2013 HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA You little -leeching- you made me fall of my chair laughing. What a stalker hahahhaha Oh god you cannot test this null check and expect you get a straight NPE in console. You need 200 players hitting so you might get the chance to get one or too. -beep- phx, you are talking about java coding now so if i fix 1 code i need 200 players online to test it.. yes you are right go to learn the method for the skills what he did doCast and what doAttack did and come to talk.. We should reply there. go and replay... but i will get the true answer from devs not from you.. lets see somthing so Trance he make 1 mistace here is not dev? http://maxcheaters.com/forum/index.php?topic=279515.msg2631199#msg2631199
xdem Posted August 1, 2013 Author Posted August 1, 2013 try { doAttack(); } catch (NullPointerException e) { final boolean sucker = true; while(sucker) System.out.println("I suck"); } L2J Prim Private source, the way to be the best ovenuc put this, u avoid the != null check, it imporve perfomance :lied:
Guest Elfocrash Posted August 1, 2013 Posted August 1, 2013 so if i fix 1 code i need 200 players online to test it.. yes you are right go to learn the method for the skills what he did doCast and what doAttack did and come to talk.. Why do i evne try to help you understand something your brain cannot process. Once a retard always a retard.
Trance Posted August 1, 2013 Posted August 1, 2013 lets see somthing so Trance he make 1 mistace here is not dev? http://maxcheaters.com/forum/index.php?topic=279515.msg2631199#msg2631199 You should share it.
xdem Posted August 1, 2013 Author Posted August 1, 2013 Why do i evne try to help you understand something your brain cannot process. Once a retard always a retard. True. Lets go to the main point of the thread, Ovenuc forget about doAttack please, and prove us ur knowledge and the staffers will give you the reward back asap
Recommended Posts