mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-30 00:27:28 +02:00
Fixed mysql null pointer.
This commit is contained in:
parent
b512f76349
commit
a3217ba4e7
@ -106,7 +106,8 @@ public class StorageMysql extends Storage {
|
|||||||
continue;
|
continue;
|
||||||
toSave.remove(toKey);
|
toSave.remove(toKey);
|
||||||
for (int i = 0; i < to.getValue().length - 1; i ++) {
|
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())) {
|
.equals(last.getValue()[i].asObject().toString())) {
|
||||||
//Update
|
//Update
|
||||||
StorageItem[] items = to.getValue();
|
StorageItem[] items = to.getValue();
|
||||||
|
Loading…
Reference in New Issue
Block a user