mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-08 19:51:05 +00:00
Added missing null check for callback
This commit is contained in:
parent
1e38edc7a0
commit
dfafa2930d
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user