0985414108 發表於 2023-12-23 16:31

黑盒子異常 (已解)

本帖最後由 0985414108 於 2023-12-27 21:42 編輯

java.lang.NullPointerException
      at com.lineage.server.model.L1Inventory.countItems(L1Inventory.java:1066)
      at com.lineage.server.templates.L1PcOtherList.get_cnItem(L1PcOtherList.java:622)
      at com.lineage.server.templates.L1PcOtherList.get_buyCn(L1PcOtherList.java:603)
      at com.lineage.server.clientpackets.C_Result.mode_cn(C_Result.java:564)
      at com.lineage.server.clientpackets.C_Result.start(C_Result.java:167)
      at com.lineage.echo.PacketHandler.handlePacket(PacketHandler.java:70)
      at com.lineage.echo.PacketHc.run(PacketHc.java:51)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
      at java.util.StringTokenizer.<init>(Unknown Source)
      at java.util.StringTokenizer.<init>(Unknown Source)
      at com.lineage.server.command.GMCommands.handleCommands(GMCommands.java:152)
      at com.lineage.server.CmdEcho.runCmd(CmdEcho.java:59)
      at com.lineage.server.CmdEcho.reRunCmd(CmdEcho.java:73)
      at com.lineage.server.CmdEcho.runCmd(CmdEcho.java:61)
      at com.lineage.server.GameServer.initialize(GameServer.java:602)
      at com.lineage.Server.main(Server.java:208)



求大大解

yasioukon 發表於 2023-12-23 18:48

L1Inventory.java檔案第1066錯誤

錯誤位置在countItems

代表道具檢查數量時 找不到該編號物品的

joe41324 發表於 2023-12-27 20:41


感謝分享

0985414108 發表於 2023-12-27 21:42

分享給大家

0985414108 發表於 2023-12-27 21:42

分享給大家
頁: [1]
查看完整版本: 黑盒子異常 (已解)