浏览代码

BETA: Fixing little NPE.

Rumen Nikiforov 12 年之前
父节点
当前提交
8f118e6113
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/datatables/EnchantOptionsData.java

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/datatables/EnchantOptionsData.java

@@ -72,7 +72,7 @@ public class EnchantOptionsData extends DocumentParser
 								for (byte i = 0; i < 3; i++)
 								for (byte i = 0; i < 3; i++)
 								{
 								{
 									att = cd.getAttributes().getNamedItem("option" + (i + 1));
 									att = cd.getAttributes().getNamedItem("option" + (i + 1));
-									if (Util.isDigit(att.getNodeValue()))
+									if ((att != null) && Util.isDigit(att.getNodeValue()))
 									{
 									{
 										op.setOption(i, parseInt(att));
 										op.setOption(i, parseInt(att));
 									}
 									}