Stewie Posted January 31, 2013 Posted January 31, 2013 Problem was with this line if (this.getActiveChar().isFarmBot()) Exception in thread "SelectorThread-364" java.lang.NullPointerException at com.l2jserver.gameserver.network.L2GameClient.onForcedDisconnecti 2GameClient.java:634) at org.mmocore.network.SelectorThread.readPacket(SelectorThread.java ) at org.mmocore.network.SelectorThread.run(SelectorThread.java:176) So as nevermore told me i changed to this... if (getActiveChar() != null && getActiveChar().isFarmBot()) And now error is Exception in thread "SelectorThread-364" java.lang.NullPointerException at com.l2jserver.gameserver.network.L2GameClient.onForcedDisconnection(L 2GameClient.java:634) at org.mmocore.network.SelectorThread.writePacket(SelectorThread.java:50 9) at org.mmocore.network.SelectorThread.run(SelectorThread.java:182) Any idias? @Override protected void onForcedDisconnection() { if (getActiveChar() != null && getActiveChar().isFarmBot()) { Util.handleIllegalPlayerAction(this.getActiveChar(), "Player: " + this.getActiveChar().getName() + " might use third party program to exploit antibot farm system.", Config.DEFAULT_PUNISH); } LogRecord record = new LogRecord(Level.WARNING, "Disconnected abnormally"); record.setParameters(new Object[] { L2GameClient.this }); _logAccounting.log(record); } Here is all part of code
0 dpbBryan Posted January 31, 2013 Posted January 31, 2013 Have you tried using the debugger to step through the code to see the values?
Question
Stewie
Problem was with this line
So as nevermore told me i changed to this...
And now error is
Any idias?
Here is all part of code
2 answers to this question
Recommended Posts