mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
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:
parent
c6e36fd70e
commit
3abb35e506
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
if (statement.isClosed()) {
|
||||
statement = null;
|
||||
}
|
||||
} catch (AbstractMethodError ignore) {
|
||||
} catch (NullPointerException | AbstractMethodError ignore) {
|
||||
}
|
||||
}
|
||||
lastTask = task;
|
||||
|
|
Loading…
Reference in a new issue