forked from MagicBane/Server
null check
This commit is contained in:
@@ -34,17 +34,19 @@ public class RuneBaseEffect extends AbstractGameObject {
|
|||||||
this.name = rs.getString("name");
|
this.name = rs.getString("name");
|
||||||
|
|
||||||
RuneBase rb = RuneBase.getRuneBase(rs.getInt("runeID"));
|
RuneBase rb = RuneBase.getRuneBase(rs.getInt("runeID"));
|
||||||
switch (rb.getName()) {
|
if(rb != null) {
|
||||||
case "Born of the Ethyri":
|
switch (rb.getName()) {
|
||||||
case "Born of the Taripontor":
|
case "Born of the Ethyri":
|
||||||
case "Born of the Gwendannen":
|
case "Born of the Taripontor":
|
||||||
case "Born of the Invorri":
|
case "Born of the Gwendannen":
|
||||||
case "Born of the Irydnu":
|
case "Born of the Invorri":
|
||||||
this.amount = 0;
|
case "Born of the Irydnu":
|
||||||
break;
|
this.amount = 0;
|
||||||
default:
|
break;
|
||||||
this.amount = rs.getShort("amount");
|
default:
|
||||||
this.runeBaseID = rs.getInt("runeID");
|
this.amount = rs.getShort("amount");
|
||||||
|
this.runeBaseID = rs.getInt("runeID");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user