Added missing null check for callback

This commit is contained in:
Eric 2017-02-10 18:13:16 +01:00
parent 1e38edc7a0
commit dfafa2930d

View File

@ -226,7 +226,7 @@ public class ShopUtils {
@Override @Override
public void onError(Throwable throwable) { public void onError(Throwable throwable) {
callback.callSyncError(throwable); if (callback != null) callback.callSyncError(throwable);
plugin.debug("Error while adding shops"); plugin.debug("Error while adding shops");
plugin.debug(throwable); plugin.debug(throwable);
} }