mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-02-22 15:31:34 +01:00
Fix for mysql null issue.
This commit is contained in:
parent
535e7e72dd
commit
f3e82097a8
@ -105,7 +105,8 @@ public class StorageMysql extends Storage {
|
||||
continue;
|
||||
toSave.remove(toKey);
|
||||
for (int i = 0; i < to.getValue().length - 1; i ++) {
|
||||
if (!to.getValue()[i].asObject().toString()
|
||||
if (to.getValue()[i].asObject() != null
|
||||
&& !to.getValue()[i].asObject().toString()
|
||||
.equals(last.getValue()[i].asObject().toString())) {
|
||||
//Update
|
||||
StorageItem[] items = to.getValue();
|
||||
|
Loading…
Reference in New Issue
Block a user