mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01: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
@ -375,7 +375,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
if (statement.isClosed()) {
|
if (statement.isClosed()) {
|
||||||
statement = null;
|
statement = null;
|
||||||
}
|
}
|
||||||
} catch (AbstractMethodError ignore) {
|
} catch (NullPointerException | AbstractMethodError ignore) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lastTask = task;
|
lastTask = task;
|
||||||
|
Loading…
Reference in New Issue
Block a user