null check

This commit is contained in:
2024-05-18 10:55:06 -05:00
parent 0457287905
commit 560466e3ef
+2
View File
@@ -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
*/ */