Hi guys! I'm a new l2jmobius user. I added the code on Eclipse and it works, but all the Npcs htmls stop working. I changed the Requestbypass then it worked again.
Am I missing something. How can I make all html work?
Everything works fine except the Requestbypasstoserver. This is how it looks:
https://pastebin.com/mA0gkm4MThis is the error log:
[12/11 01:21:12] Exception processing bypass from Player:asd[268477606]: npc_268464709_Buy 69 Cannot invoke "String.length()" because "replacement" is null
[12/11 01:21:12] java.lang.NullPointerException: Cannot invoke "String.length()" because "replacement" is null
at java.base/java.util.regex.Matcher.appendExpandedReplacement(Matcher.java:1014)
at java.base/java.util.regex.Matcher.appendReplacement(Matcher.java:997)
at java.base/java.util.regex.Matcher.replaceAll(Matcher.java:1181)
at java.base/java.lang.String.replaceAll(String.java:2939)
at org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage.replace(NpcHtmlMessage.java:227)
at org.l2jmobius.gameserver.network.clientpackets.RequestBypassToServer.sendEditWindow(RequestBypassToServer.java:403)
at org.l2jmobius.gameserver.network.clientpackets.RequestBypassToServer.run(RequestBypassToServer.java:224)
at org.l2jmobius.gameserver.network.PacketHandler.handle(PacketHandler.java:80)
at org.l2jmobius.gameserver.network.PacketHandler.handle(PacketHandler.java:29)
at org.l2jmobius.commons.network.ExecuteThread$ExecuteTask.run(ExecuteThread.java:130)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)