Fixed mysql null pointer.

This commit is contained in:
Brianna O'Keefe 2019-02-28 11:32:36 -05:00
parent b512f76349
commit a3217ba4e7

View File

@ -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();