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");
|
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
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user