Browse Source

null check

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

2
src/engine/objects/RuneBaseEffect.java

@ -34,6 +34,7 @@ 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"));
if(rb != null) {
switch (rb.getName()) { switch (rb.getName()) {
case "Born of the Ethyri": case "Born of the Ethyri":
case "Born of the Taripontor": case "Born of the Taripontor":
@ -47,6 +48,7 @@ public class RuneBaseEffect extends AbstractGameObject {
this.runeBaseID = rs.getInt("runeID"); this.runeBaseID = rs.getInt("runeID");
} }
} }
}
/* /*
* Getters * Getters
*/ */

Loading…
Cancel
Save