Browse Source

null check

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
560466e3ef
  1. 24
      src/engine/objects/RuneBaseEffect.java

24
src/engine/objects/RuneBaseEffect.java

@ -34,17 +34,19 @@ public class RuneBaseEffect extends AbstractGameObject { @@ -34,17 +34,19 @@ public class RuneBaseEffect extends AbstractGameObject {
this.name = rs.getString("name");
RuneBase rb = RuneBase.getRuneBase(rs.getInt("runeID"));
switch (rb.getName()) {
case "Born of the Ethyri":
case "Born of the Taripontor":
case "Born of the Gwendannen":
case "Born of the Invorri":
case "Born of the Irydnu":
this.amount = 0;
break;
default:
this.amount = rs.getShort("amount");
this.runeBaseID = rs.getInt("runeID");
if(rb != null) {
switch (rb.getName()) {
case "Born of the Ethyri":
case "Born of the Taripontor":
case "Born of the Gwendannen":
case "Born of the Invorri":
case "Born of the Irydnu":
this.amount = 0;
break;
default:
this.amount = rs.getShort("amount");
this.runeBaseID = rs.getInt("runeID");
}
}
}
/*

Loading…
Cancel
Save