Empty check when reading enum
This commit is contained in:
@@ -153,8 +153,9 @@ public class Item extends AbstractWorldObject {
|
|||||||
|
|
||||||
String flagString = rs.getString("item_flags");
|
String flagString = rs.getString("item_flags");
|
||||||
|
|
||||||
for (String itemFlag : flagString.split(";"))
|
if (flagString.isEmpty() == false)
|
||||||
this.flags.add(Enum.ItemFlags.valueOf(itemFlag));
|
for (String itemFlag : flagString.split(";"))
|
||||||
|
this.flags.add(Enum.ItemFlags.valueOf(itemFlag));
|
||||||
|
|
||||||
// Backfill support
|
// Backfill support
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user