[Fix] Fixed NPE in AbstractTransaction.needsCommit()
This commit is contained in:
parent
dad2f35b16
commit
45a385920d
|
@ -253,7 +253,8 @@ public abstract class AbstractTransaction implements StrolchTransaction {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean needsCommit() {
|
public boolean needsCommit() {
|
||||||
return !this.objectFilter.isEmpty() || !this.commands.isEmpty() || !this.flushedCommands.isEmpty();
|
return (this.objectFilter != null && !this.objectFilter.isEmpty()) || !this.commands.isEmpty()
|
||||||
|
|| !this.flushedCommands.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue