Fix for mysql null issue.

This commit is contained in:
Brianna O'Keefe 2019-02-28 12:20:56 -05:00
parent 535e7e72dd
commit f3e82097a8

View File

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