Prevent NPE when trying to set statement = null in SQLManager

If the statement is null, the `isClosed` check will lead to a NPE. As it's going to be null either way, just ignoring the NPE has no side effects.
This commit is contained in:
Alexander Söderberg 2019-12-20 18:01:36 +01:00
parent c6e36fd70e
commit 3abb35e506

View file

@ -375,7 +375,7 @@ import java.util.concurrent.atomic.AtomicInteger;
if (statement.isClosed()) {
statement = null;
}
} catch (AbstractMethodError ignore) {
} catch (NullPointerException | AbstractMethodError ignore) {
}
}
lastTask = task;