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