forked from MagicBane/Server
null check
This commit is contained in:
@@ -34,6 +34,7 @@ public class RuneBaseEffect extends AbstractGameObject {
|
||||
this.name = rs.getString("name");
|
||||
|
||||
RuneBase rb = RuneBase.getRuneBase(rs.getInt("runeID"));
|
||||
if(rb != null) {
|
||||
switch (rb.getName()) {
|
||||
case "Born of the Ethyri":
|
||||
case "Born of the Taripontor":
|
||||
@@ -47,6 +48,7 @@ public class RuneBaseEffect extends AbstractGameObject {
|
||||
this.runeBaseID = rs.getInt("runeID");
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Getters
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user