Only execute if throwable is null

This commit is contained in:
Keir Nellyer 2016-10-04 16:34:19 +01:00
parent 6709001c89
commit 22707d6d2e

View File

@ -34,7 +34,7 @@ public class ReportAbortCommand extends CommandBase<ReportPlugin>
reportManager.getReportHandling(player).whenComplete(BukkitFuture.complete((reportOptional, throwable) ->
{
if (throwable != null)
if (throwable == null)
{
if (reportOptional.isPresent())
{