forked from MagicBane/Server
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");
|
||||
|
||||
for (String itemFlag : flagString.split(";"))
|
||||
this.flags.add(Enum.ItemFlags.valueOf(itemFlag));
|
||||
if (flagString.isEmpty() == false)
|
||||
for (String itemFlag : flagString.split(";"))
|
||||
this.flags.add(Enum.ItemFlags.valueOf(itemFlag));
|
||||
|
||||
// Backfill support
|
||||
|
||||
|
||||
Reference in New Issue
Block a user